• RELEVANCY SCORE 3.67

    DB:3.67:Oracle Jdeveloper j3





    Hi all

    I have a application developed in Oracle JDEveloper10. When i run this app from within JDev IDE its running fine.

    But when i try to create a war for this application using build.xml and deploy this war am getting this error

    [Mar 18, 2008 2:01:03 PM] Exception: NoClassDefFoundError: javax/faces/FacesException
    [Mar 18, 2008 2:01:03 PM] Operation failed with error: javax/faces/FacesException

    Any help

    DB:3.67:Oracle Jdeveloper j3

    In JDeveloper click 'Project Properties' from the 'Tools' menu then click the 'Libraries' entry on the list on the left. This will tell you all the jars that JDeveloper has put into your project.

    How did you create your project, using one of the pre-defined JDeveloper wizards, eg new Web Project?

  • RELEVANCY SCORE 3.17

    DB:3.17:Oracle Webcentre Framework Tutorial - Deployment Error c3





    Hi,
    I am currently running through the Oracle WebCentre Framework Tutorial (Chapter 3 - Building and Testing your first Portlet) using the latest version of JDeveloper (10.1.3.2) and deploying to MyLocalOC4J (included in JDeveloper).

    The first time I deploy the portlet the deployment finishes with no errors.

    After creating the JSP Page (MyPage.jpx) and making the subsequent code changes as specified in the tutorial, when I go to redeploy the portlet to MyLocalOC4J I get the following error:

    Binding web application(s) to site default-web-site begins...
    Binding TutorialPortlets web-module for application TutorialPortlets to site default-web-site under context root TutorialPortlets
    Exception: NoClassDefFoundError: javax/faces/FacesException
    Operation failed with error:
    javax/faces/FacesException

    Deployment failed
    Elapsed time for deployment: 1 minute, 12 seconds

    This error is obviously pointing to a missing jar file somewhere. Does anyone know how to fix this issue ?

    Thanks.

    DB:3.17:Oracle Webcentre Framework Tutorial - Deployment Error c3

    Hi,
    No, the Portlet Faces Bridge was missing. Issue has now been resolved.

    Thanks.

  • RELEVANCY SCORE 3.03

    DB:3.03:How To Move A Page File To Another Directory ? 9m





    Hi,

    What I did to try to move a page to another directory is:

    1. copy the page file to another directory /public_html/mydirectory.

    2. modify the nevigation-rule in the faces-config.xml file so that the nevigation-rule
    point to the file in the new directory.

    But when run the page, there is an FacesException: Cannt instantiate backing_bean.

    How to move a page file to another directory?

    Thanks

    Stephen

    DB:3.03:How To Move A Page File To Another Directory ? 9m

    Thanks Frank, I moved the page file to a new directory successfully.

    Stephen

  • RELEVANCY SCORE 3.03

    DB:3.03:Re: Jsf And Database Tables In The Pages... 3a


    Variable catalog represents a data object for a row of data.

    http://java.sun.com/javaee/javaserverfaces/1.1_01/docs/api/javax/faces/component/UIData.html#setVar(java.lang.String)

    DB:3.03:Re: Jsf And Database Tables In The Pages... 3a

    Thanks for the reply. Here is how Iam doing it :
    public MyTable() {
    FacesContext context = FacesContext.getCurrentInstance();
    addColumns(context);
    super.setVar("employee");
    super.setBanding("row");
    super.setBandingInterval(1);
    super.setWidth("721");
    super.setRows(2);
    try {
    super.encodeAll(context);
    } catch (Exception e) {
    e.printStackTrace();
    }
    }

    private void addColumns(FacesContext context) {
    String value = (String) getAttributes().get("model");

    // System.out.println("model : "+value );

    TreeModel tree = new LibraryHandler().getTreeModel();
    CoreTable coreTable = super;
    Object tabColumns = tree.getRowData(0);
    PropertyDescriptor[] props = PropertyUtils.getPropertyDescriptors(tabColumns);

    CoreColumn column1 = new CoreColumn();
    for (int i = 0; i props.length; i++) {
    PropertyDescriptor prop = props;
    if (!prop.getPropertyType().getSimpleName().equalsIgnoreCase("class")) {
    column1 = new CoreColumn();
    CoreOutputText headerComponent = new CoreOutputText();
    headerComponent.setValue(prop.getName().trim().toString());
    convertCamelCase(prop.getName().trim().toString());
    column1.setHeader(headerComponent);

    CoreOutputText column1Text = new CoreOutputText();
    ValueBinding vb =
    context.getApplication().createValueBinding("#{employee." + prop.getName().trim().toString() +
    "}");
    column1Text.setValueBinding("value", vb);
    column1.getChildren().add(column1Text);
    column1.setSortable(true);
    coreTable.getChildren().add(column1);

    }

    }
    coreTable.setValue(tree);

    }

    Is there any better way than this ?

    Another question is how do I gather the EL Expression given on the JSP in the above class ? lets say my jsp has : my:table model="#{LibraryHandler.treeModel}" / .
    From the above EL expression model value given - how do I instatiate the corresponding model. This is where I got stuck. normal values like string or int I can receive them by ValueBinding or by getAttributes() .

    Regards
    Ravi Kumar

  • RELEVANCY SCORE 3.00

    DB:3.00:Expr Ok But Not Works For Me... cp


    DB:3.00:Expr Ok But Not Works For Me... cp


    Gysbert!!!

    It works! Thanks a lot! I appreciate it!

    JMC

  • RELEVANCY SCORE 2.91

    DB:2.91:Shell Scripting ( Script Run On Some Versions Of Linux And Not On Others ) 1j


    I have a scrip which is made for Linux OS to calculate the size of the total space
    and the used of this total space and the free space of it

    this is the script I'm talking about

    a=0
    b=0
    c=0
    df -k|grep -v Mounted|awk '{print $2" "$3" "$4}'|{ while read TOTAL USED AVAIL
    do
    a=$(expr "$a" + "$TOTAL")
    b=$(expr "$b" + "$USED")
    c=$(expr "$c" + "$AVAIL")
    done
    echo ""
    echo "Total Disk Space:"`expr "$a" / 1024 / 1024`"GB"
    echo ""
    echo "Total Disk Used: "`expr "$b" / 1024 / 1024`"GB"
    echo ""
    echo "Total Disk Free: "`expr "$c" / 1024 / 1024`"GB"
    }

    and this is part of the error I get

    expr: non-numeric argument
    expr: non-numeric argument
    expr: non-numeric argument
    expr: non-numeric argument
    expr: non-numeric argument
    expr: non-numeric argument
    expr: non-numeric argument
    expr: non-numeric argument
    expr: non-numeric argument

    expr: non-numeric argument
    Total Disk Space:GB

    expr: non-numeric argument
    Total Disk Used: GB

    expr: non-numeric argument
    Total Disk Free: GB

    and this is the output if it ran successfully

    Total Disk Space:130GB

    Total Disk Used: 5GB

    Total Disk Free: 118GB

    So I need to know what do you think the problem ?
    Is it related to the OS version if so how this could be and how can I check the Linux OS version ?

    Thanks best regards :)

    DB:2.91:Shell Scripting ( Script Run On Some Versions Of Linux And Not On Others ) 1j

    expr: non-numeric argumentYour problem might be the df command. The expr is not able to read the data. Try using "*df -Pk*". The -P argument uses the posix format of the df command to prevent the splitting of long lines.

    For instance:

    $ df -k|grep -v Mounted|awk '{print $2" "$3" "$4}'

    23630560 7165280 77%
    101086 43515 52352
    2029568 0 2029568

    $ df -Pk|grep -v Mounted|awk '{print $2" "$3" "$4}'
    32471920 23630564 7165276
    101086 43515 52352
    2029568 0 2029568

    As you can see from above example, -P is necessary under Enterprise Linux.Please see the forum faq and edit your posting to include { c o d e } delimiters when posting code.

  • RELEVANCY SCORE 2.79

    DB:2.79:Problem With Deploying Application da



    I'm trying to deploy web application containing facelets 1.1.14, jsf 1.2 and spring 2.5 and I'm getting this mistake:
    09:34:44,119 ERROR [[/Projekt]] Exception sending context initialized event to listener instance of class com.sun.faces.config.ConfigureListener
    java.lang.LinkageError: loader constraint violation: when resolving interface method "javax.servlet.jsp.JspApplicationContext.getExpressionFactory()Ljavax/el/ExpressionFactory;" the class loader (instance of org/jboss/classloader/spi/base/BaseClassLoader) of the current class, com/sun/faces/config/ConfigureListener, and the class loader (instance of org/jboss/classloader/spi/base/BaseClassLoader) for resolved class, javax/servlet/jsp/JspApplicationContext, have different Class objects for the type javax/el/ExpressionFactory used in the signature
    at com.sun.faces.config.ConfigureListener.registerELResolverAndListenerWithJsp(ConfigureListener.java:1638) at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:455)

    DB:2.79:Problem With Deploying Application da


    Ohhh, Yes:-) Removal these libraries helped. Thanks.But what about using spring-web-flow and facelets?Are some suprises waiting for me?Thanks for all responses.

  • RELEVANCY SCORE 2.79

    DB:2.79:Seam Faces Not Working With Jbas6 Cr1 m1


    The exception is thrown when accessing any JSF page.The environment: - JBoss AS 6.0.0.CR1 - Weld 1.1.0.Beta2 (the one with de AS dist) - Weld Extensions 1.0.0-SNAPSHOT - Seam Persistence 3.0.0-SNAPSHOTThe stack trace:exceptionjavax.servlet.ServletException: object is not an instance of declaring classjavax.faces.webapp.FacesServlet.service(FacesServlet.java:321)org.jboss.weld.servlet.ConversationPropagationFilter.doFilter(ConversationPropagationFilter.java:67)root causejava.lang.IllegalArgumentException: object is not an instance of declaring classsun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)java.lang.reflect.Method.invoke(Method.java:597)org.jboss.seam.persistence.PersistenceContextProxyHandler.invoke(PersistenceContextProxyHandler.java:68)org.jboss.seam.persistence.ManagedPersistenceContextProxyHandler.invoke(ManagedPersistenceContextProxyHandler.java:126)$Proxy745.getProvider(Unknown Source)sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)java.lang.reflect.Method.invoke(Method.java:597)org.jboss.weld.bean.proxy.AbstractBeanInstance.invoke(AbstractBeanInstance.java:48)org.jboss.weld.bean.proxy.ProxyMethodHandler.invoke(ProxyMethodHandler.java:102)org.jboss.weld.proxies.SMPC-org$jboss$seam$persistence$ManagedPersistenceContextExtension-ville$lookbook$producers$PersistenceProducer$producerField[@javax$enterprise$context$ConversationScoped()@javax$enterprise$inject$Produces()@javax$persistence$PersistenceUnit(name=,unitName=)@org$jboss$seam$persistence$SeamManaged()]_$$_WeldClientProxy.getProvider(SMPC-org$jboss$seam$persistence$ManagedPersistenceContextExtension-ville$lookbook$producers$PersistenceProducer$producerField[@javax$enterprise$context$ConversationScoped()@javax$enterprise$inject$Produces()@javax$persistence$PersistenceUnit(name=,unitName=)@org$jboss$seam$persistence$SeamManaged()]_$$_WeldClientProxy.java)org.jboss.seam.persistence.PersistenceContextsImpl.beforeRender(PersistenceContextsImpl.java:131)org.jboss.seam.persistence.org$jboss$weld$bean-jboss$classloader:id="vfs:$$$home$cjalmeida$opt$jboss-6$0$0$20101110-CR1$server$default$deploy$lookbook$war"-ManagedBean-class_org$jboss$seam$persistence$PersistenceContextsImpl_$$_WeldClientProxy.beforeRender(org$jboss$weld$bean-jboss$classloader:id="vfs:$$$home$cjalmeida$opt$jboss-6$0$0$20101110-CR1$server$default$deploy$lookbook$war"-ManagedBean-class_org$jboss$seam$persistence$PersistenceContextsImpl_$$_WeldClientProxy.java)org.jboss.seam.faces.transaction.TransactionPhaseListener.handleTransactionsBeforePhase(TransactionPhaseListener.java:103)org.jboss.seam.faces.transaction.TransactionPhaseListener.beforePhase(TransactionPhaseListener.java:84)org.jboss.seam.faces.event.DelegatingPhaseListener.beforePhase(DelegatingPhaseListener.java:56)com.sun.faces.lifecycle.Phase.handleBeforePhase(Phase.java:224)com.sun.faces.lifecycle.Phase.doPhase(Phase.java:95)com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:135)javax.faces.webapp.FacesServlet.service(FacesServlet.java:309)org.jboss.weld.servlet.ConversationPropagationFilter.doFilter(ConversationPropagationFilter.java:67)

    DB:2.79:Seam Faces Not Working With Jbas6 Cr1 m1

    The exception is thrown when accessing any JSF page.The environment: - JBoss AS 6.0.0.CR1 - Weld 1.1.0.Beta2 (the one with de AS dist) - Weld Extensions 1.0.0-SNAPSHOT - Seam Persistence 3.0.0-SNAPSHOTThe stack trace:exceptionjavax.servlet.ServletException: object is not an instance of declaring classjavax.faces.webapp.FacesServlet.service(FacesServlet.java:321)org.jboss.weld.servlet.ConversationPropagationFilter.doFilter(ConversationPropagationFilter.java:67)root causejava.lang.IllegalArgumentException: object is not an instance of declaring classsun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)java.lang.reflect.Method.invoke(Method.java:597)org.jboss.seam.persistence.PersistenceContextProxyHandler.invoke(PersistenceContextProxyHandler.java:68)org.jboss.seam.persistence.ManagedPersistenceContextProxyHandler.invoke(ManagedPersistenceContextProxyHandler.java:126)$Proxy745.getProvider(Unknown Source)sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)java.lang.reflect.Method.invoke(Method.java:597)org.jboss.weld.bean.proxy.AbstractBeanInstance.invoke(AbstractBeanInstance.java:48)org.jboss.weld.bean.proxy.ProxyMethodHandler.invoke(ProxyMethodHandler.java:102)org.jboss.weld.proxies.SMPC-org$jboss$seam$persistence$ManagedPersistenceContextExtension-ville$lookbook$producers$PersistenceProducer$producerField[@javax$enterprise$context$ConversationScoped()@javax$enterprise$inject$Produces()@javax$persistence$PersistenceUnit(name=,unitName=)@org$jboss$seam$persistence$SeamManaged()]_$$_WeldClientProxy.getProvider(SMPC-org$jboss$seam$persistence$ManagedPersistenceContextExtension-ville$lookbook$producers$PersistenceProducer$producerField[@javax$enterprise$context$ConversationScoped()@javax$enterprise$inject$Produces()@javax$persistence$PersistenceUnit(name=,unitName=)@org$jboss$seam$persistence$SeamManaged()]_$$_WeldClientProxy.java)org.jboss.seam.persistence.PersistenceContextsImpl.beforeRender(PersistenceContextsImpl.java:131)org.jboss.seam.persistence.org$jboss$weld$bean-jboss$classloader:id="vfs:$$$home$cjalmeida$opt$jboss-6$0$0$20101110-CR1$server$default$deploy$lookbook$war"-ManagedBean-class_org$jboss$seam$persistence$PersistenceContextsImpl_$$_WeldClientProxy.beforeRender(org$jboss$weld$bean-jboss$classloader:id="vfs:$$$home$cjalmeida$opt$jboss-6$0$0$20101110-CR1$server$default$deploy$lookbook$war"-ManagedBean-class_org$jboss$seam$persistence$PersistenceContextsImpl_$$_WeldClientProxy.java)org.jboss.seam.faces.transaction.TransactionPhaseListener.handleTransactionsBeforePhase(TransactionPhaseListener.java:103)org.jboss.seam.faces.transaction.TransactionPhaseListener.beforePhase(TransactionPhaseListener.java:84)org.jboss.seam.faces.event.DelegatingPhaseListener.beforePhase(DelegatingPhaseListener.java:56)com.sun.faces.lifecycle.Phase.handleBeforePhase(Phase.java:224)com.sun.faces.lifecycle.Phase.doPhase(Phase.java:95)com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:135)javax.faces.webapp.FacesServlet.service(FacesServlet.java:309)org.jboss.weld.servlet.ConversationPropagationFilter.doFilter(ConversationPropagationFilter.java:67)

  • RELEVANCY SCORE 2.62

    DB:2.62:How To Append More Expression After Defined Type Before ff


    if already defined
    type expr =
    | Plus of expr * expr
    | Multiply of expr * expr
    | Null
    | P1
    | P2
    | P3
    | P4
    | P5
    | Integers of float

    later i want to append more definition or expression to this type expr
    how can i append to it
    can it
    expr = expr | Conj of expr * expr
    ?

    成功者拿未來換現在,失敗者用現在換未來. 原來無求品自高, 機到有求先得手. She likes you.

    DB:2.62:How To Append More Expression After Defined Type Before ff

    based onhttp://en.wikibooks.org/wiki/F_Sharp_Programming/Reflection
    System.Activator.CreateInstanceis to create instance,how to create a type with reflection?

    成功者拿未來換現在,失敗者用現在換未來. 原來無求品自高, 機到有求先得手. She likes you and You can be a success. Who you choose Who you married.

  • RELEVANCY SCORE 2.61

    DB:2.61:Creating Portlet With Rich Faces In Rad 7.5 And Deploying On Websphere Portal Server kz



    I created a JSF 1.2 portlet project and a faces definition project for Rich Faces in RAD 7.5 .

    Added the following filter configuration in web.xml,

    When I published the project on WebSphere Portal 6.1 on WAS 7 , following exception is logged on console

    Caused by javax,portlet.PortletException:- Resource framework is not initilaized, check web.xml for filter configuration.

    I have attached the complete log.

    Please let me know how I can resolve this error?

    DB:2.61:Creating Portlet With Rich Faces In Rad 7.5 And Deploying On Websphere Portal Server kz


    Yes .I am using IBM JSF portlet bridge .

    Please let me know how I can resolve this error?

  • RELEVANCY SCORE 2.55

    DB:2.55:Openscript Regex Problem x9


    I'm trying to extract a value from a page with the RegEx - name\=\"javax\.faces\.ViewState\"\svalue\=\"([\!\-0-9a-zA-Z]{1,11}) which works fine in my other tools but fails in OpenScript with "Failed to solve state" Reason -"com.sun.jdi.InvocationException occurred invoking method" The problem seems to be around the \"\s ....... any clues would be appreciated.

    Pete

    DB:2.55:Openscript Regex Problem x9

    I'm trying to extract a value from a page with the RegEx - name\=\"javax\.faces\.ViewState\"\svalue\=\"([\!\-0-9a-zA-Z]{1,11}) which works fine in my other tools but fails in OpenScript with "Failed to solve state" Reason -"com.sun.jdi.InvocationException occurred invoking method" The problem seems to be around the \"\s ....... any clues would be appreciated.

    Pete

  • RELEVANCY SCORE 2.51

    DB:2.51:Java.Lang.Noclassdeffounderror: Javax/Faces/Webapp/Convertereltag xk


    Hi all,

    I created an application where MDS(Metadata Service) is activated.
    When I try to deploy the EAR file using the Enterprise Manager(EM) it gives me the following error.
    (error appears at the final step of the deployment)
    [September 14, 2011 1:17:13 PM IST] Initiating deploy operation ...
    [September 14, 2011 1:17:13 PM IST] Saving the oracle configuration changes to archive.
    [September 14, 2011 1:17:18 PM IST] Archive: /x01/oracle/Middleware/user_projects/domains/IDMDomain/sysman/upload/deploy/csdmds_5_0_0_5/ archive/csdmds_5_0_0_5.ear
    [September 14, 2011 1:17:18 PM IST] Targeting MDS repository: com.bea:Name=mds-CSDRepository1,Type=JDBCSystemResource to target AdminServer.
    [September 14, 2011 1:17:18 PM IST] Targeting MDS repository: com.bea:Name=mds-CSDRepository1,Type=JDBCSystemResource to target AdminServer completed.
    [September 14, 2011 1:17:39 PM IST] [Deployer:149192]Operation 'deploy' on application 'csdmds_5_0_0_5' is in progress on 'AdminServer'
    [September 14, 2011 1:17:41 PM IST] [Deployer:149193]Operation 'deploy' on application 'csdmds_5_0_0_5' has failed on 'AdminServer'
    [September 14, 2011 1:17:41 PM IST] java.lang.NoClassDefFoundError: javax/faces/webapp/ConverterELTag
    [September 14, 2011 1:17:41 PM IST] javax/faces/webapp/ConverterELTag
    [September 14, 2011 1:17:42 PM IST] Deploy operation failed.Then I added some libraries to the project then another error appears...
    same case only the missing file has changed..
    java.lang.NoClassDefFoundError: oracle/adf/controller/v2/lifecycle/PagePhaseListener
    oracle/adf/controller/v2/lifecycle/PagePhaseListenerI stuck at there...

    Need some help.
    Regards,
    Dinuka.

    DB:2.51:Java.Lang.Noclassdeffounderror: Javax/Faces/Webapp/Convertereltag xk

    Hi all,

    I created an application where MDS(Metadata Service) is activated.
    When I try to deploy the EAR file using the Enterprise Manager(EM) it gives me the following error.
    (error appears at the final step of the deployment)
    [September 14, 2011 1:17:13 PM IST] Initiating deploy operation ...
    [September 14, 2011 1:17:13 PM IST] Saving the oracle configuration changes to archive.
    [September 14, 2011 1:17:18 PM IST] Archive: /x01/oracle/Middleware/user_projects/domains/IDMDomain/sysman/upload/deploy/csdmds_5_0_0_5/ archive/csdmds_5_0_0_5.ear
    [September 14, 2011 1:17:18 PM IST] Targeting MDS repository: com.bea:Name=mds-CSDRepository1,Type=JDBCSystemResource to target AdminServer.
    [September 14, 2011 1:17:18 PM IST] Targeting MDS repository: com.bea:Name=mds-CSDRepository1,Type=JDBCSystemResource to target AdminServer completed.
    [September 14, 2011 1:17:39 PM IST] [Deployer:149192]Operation 'deploy' on application 'csdmds_5_0_0_5' is in progress on 'AdminServer'
    [September 14, 2011 1:17:41 PM IST] [Deployer:149193]Operation 'deploy' on application 'csdmds_5_0_0_5' has failed on 'AdminServer'
    [September 14, 2011 1:17:41 PM IST] java.lang.NoClassDefFoundError: javax/faces/webapp/ConverterELTag
    [September 14, 2011 1:17:41 PM IST] javax/faces/webapp/ConverterELTag
    [September 14, 2011 1:17:42 PM IST] Deploy operation failed.Then I added some libraries to the project then another error appears...
    same case only the missing file has changed..
    java.lang.NoClassDefFoundError: oracle/adf/controller/v2/lifecycle/PagePhaseListener
    oracle/adf/controller/v2/lifecycle/PagePhaseListenerI stuck at there...

    Need some help.
    Regards,
    Dinuka.

  • RELEVANCY SCORE 2.50

    DB:2.50:Com.Sun.Faces.Config.Configurationexception: Configuration Failed! cc


    Hi,

    I installed new 5158 build and I get this exception wlile trying to run MyApp:

    Dec 12, 2008 11:58:00 AM CET Warning HTTP BEA-101162 User defined listener com.sun.faces.config.ConfigureListener failed: com.sun.faces.config.ConfigurationException: CONFIGURATION FAILED!
    Source Document: zip:C:/Oracle/Middleware/jdeveloper/system/system11.1.1.0.31.51.88/DefaultDomain/servers/DefaultServer/tmp/_WL_user/MyApp/saai2d/war/WEB-INF/lib/adf-controller.jar!/META-INF/faces-config.xml
    Cause: Class 'oracle.adfinternal.controller.faces.lifecycle.ADFLifecyclePhaseListener' is missing a runtime dependency: java.lang.NoClassDefFoundError: javax/faces/event/PhaseListener.
    com.sun.faces.config.ConfigurationException: CONFIGURATION FAILED!
    Source Document: zip:C:/Oracle/Middleware/jdeveloper/system/system11.1.1.0.31.51.88/DefaultDomain/servers/DefaultServer/tmp/_WL_user/MyApp/saai2d/war/WEB-INF/lib/adf-controller.jar!/META-INF/faces-config.xml
    Cause: Class 'oracle.adfinternal.controller.faces.lifecycle.ADFLifecyclePhaseListener' is missing a runtime dependency: java.lang.NoClassDefFoundError: javax/faces/event/PhaseListener
    at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:211)
    at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:184)
    at weblogic.servlet.internal.EventsManager$FireContextListenerAction.run(EventsManager.java:465)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(Unknown Source)
    Truncated. see log file for complete stacktrace
    {code}

    This app worked with 5156, any help?

    Pedja

    DB:2.50:Com.Sun.Faces.Config.Configurationexception: Configuration Failed! cc

    Hi,

    I installed new 5158 build and I get this exception wlile trying to run MyApp:

    Dec 12, 2008 11:58:00 AM CET Warning HTTP BEA-101162 User defined listener com.sun.faces.config.ConfigureListener failed: com.sun.faces.config.ConfigurationException: CONFIGURATION FAILED!
    Source Document: zip:C:/Oracle/Middleware/jdeveloper/system/system11.1.1.0.31.51.88/DefaultDomain/servers/DefaultServer/tmp/_WL_user/MyApp/saai2d/war/WEB-INF/lib/adf-controller.jar!/META-INF/faces-config.xml
    Cause: Class 'oracle.adfinternal.controller.faces.lifecycle.ADFLifecyclePhaseListener' is missing a runtime dependency: java.lang.NoClassDefFoundError: javax/faces/event/PhaseListener.
    com.sun.faces.config.ConfigurationException: CONFIGURATION FAILED!
    Source Document: zip:C:/Oracle/Middleware/jdeveloper/system/system11.1.1.0.31.51.88/DefaultDomain/servers/DefaultServer/tmp/_WL_user/MyApp/saai2d/war/WEB-INF/lib/adf-controller.jar!/META-INF/faces-config.xml
    Cause: Class 'oracle.adfinternal.controller.faces.lifecycle.ADFLifecyclePhaseListener' is missing a runtime dependency: java.lang.NoClassDefFoundError: javax/faces/event/PhaseListener
    at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:211)
    at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:184)
    at weblogic.servlet.internal.EventsManager$FireContextListenerAction.run(EventsManager.java:465)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(Unknown Source)
    Truncated. see log file for complete stacktrace
    {code}

    This app worked with 5156, any help?

    Pedja

  • RELEVANCY SCORE 2.49

    DB:2.49:Cannot Import Javax.Faces.Model 79


    Dear friends,
    Greetings,

    I want to use the model classes : ArrayDataModel, ListDataModel,ResultSetDataModel, etc. ,,,
    According to "core JavaServer Faces" Book ( Sun - By David Geary ),
    Chapter 5( Data Tables) , these classes are in javax.faces.model.
    Iam using Oracle JDeveloper 10g Early Access . Trying
    import javax.faces , faces is not in the drop list of javax .
    Please advise .... thanks and regards
    Salah Beidas

    DB:2.49:Cannot Import Javax.Faces.Model 79

    Hello,

    I don't know Oracle JDeveloper, but I don't think it is different from other IDE's:
    You have to add the JSF library to your project.

    I personnaly downloaded jsf-1_1_01.zip, unzipped it in C:\java\jsf-1_1_01
    Then right-clicked on project libraries to add this library:

    C:\java\jsf-1_1_01\lib\jsf-api.jar

    Hope this will help!

  • RELEVANCY SCORE 2.49

    DB:2.49:Using Eval Expr() With A Column Name 7j



    can some one help me in using eval expr() function with column name;

    example:

    column1="names";

    eval expr(":"||column1);

    is the above evel expr() refers to names column? if so please help me with the syntax..(for referring column names)

    DB:2.49:Using Eval Expr() With A Column Name 7j


    If this question is not answered, I guess I do not understand the question. Here is another answer . . .

    In this case, eval expr() is not working as I would expect. However, I almost never use eval expr() instead I would write

    column1 = "names";

    val = Eval(Expr(":" || column1));

    If you run this, val = ":names"

    Alternatively, you could simply write

    val = Eval(":" || column1);

    or

    val = ":" || column1;

    However, if you want to actually refer to the column whose name is "names" then you will have to parse val. . .

    val2 = parse(val);

    Now you can, for example, get the value in row one of this column by running val2[1].

    If your question is not answered at this point, please restate your question.

  • RELEVANCY SCORE 2.49

    DB:2.49:Facesexception m7


    Hi All,

    I am new to JSF.I am trying simple JSF application.But its giving me error as,

    javax.servlet.ServletException: javax.servlet.jsp.JspException: javax.faces.FacesException: javax.faces.FacesException: Can't instantiate class: 'com.MyLogin'.. com.MyLogin

    for this I checked if my class file is there in classpath or not ,but its there.

    My faces config is as follows,

    faces-config
    navigation-rule
    from-view-id/login.jsp/from-view-id
    navigation-case
    from-outcomesuccess/from-outcome
    to-view-id/greeting.jsp/to-view-id
    /navigation-case
    navigation-case
    from-outcomefailure/from-outcome
    to-view-id/login.jsp/to-view-id
    /navigation-case
    /navigation-rule
    managed-bean
    descriptionLogin Bean Holder/description
    managed-bean-nameMyBean/managed-bean-name
    managed-bean-classcom.MyLogin/managed-bean-class
    managed-bean-scopesession/managed-bean-scope
    /managed-bean
    /faces-config

    my servlet mapping in web.xml is as,

    servlet-mapping
    servlet-nameFaces Servlet/servlet-name
    url-pattern*.faces/url-pattern
    /servlet-mapping

    My login.jsp contains,
    h:form id="loginForm"
    h:inputText id="username" value="#{MyBean.username}" /

    if i remove value attribute from above , login page is showing in browser.But if I put value attribute itas giving mentioned error.

    I am accessing my application through ,

    http://localhost:8080/application name/jsp/login.faces

    any suggestions ?

    Thx
    sandip

    DB:2.49:Facesexception m7

    Thx Karthikeyan those who helped me.

    My problem is solved.
    The problem was with JDK . I was using j2sdk1.4 which I changed to JDK5.
    Now its working.

    Thx again,
    sandip

  • RELEVANCY SCORE 2.49

    DB:2.49:Dynamic Faces Components + Apache Tomcat aa


    Hello folks!

    I developed a web application with the Woodstock framework, Visual Web Java Server Faces.
    This application runs on an Apache Tomcat server. Now I want to integrate some ajax functions using the Dynamic Faces Components.

    I copied the AjaxChatRoom project from the tutorials on netbeans.org to see how to handle with this Ajax framework. This application runs without any problems when I choose the glassfish server. However, it couldn't even started when I choose the Apache Tomcat server.

    The errors were:

    1) log:

    Exception sending context initialized event to listener instance of class com.sun.faces.config.ConfigureListener
    java.lang.NoClassDefFoundError: javax/faces/application/StateManagerWrapper

    2) directly:

    Parse Error at line 27 column 19: Document root element "faces-config", must match DOCTYPE root "null".
    org.xml.sax.SAXParseException: Document root element "faces-config", must match DOCTYPE root "null".

    Is it generally possible to run an application using this ajax framework (Dynamic Faces Components 0.2) on an Apache Tomcat server ?

    DB:2.49:Dynamic Faces Components + Apache Tomcat aa

    Raymond has a good point. Please answer his question and handle his suggestion.

  • RELEVANCY SCORE 2.48

    DB:2.48:Making A New Lifecycle Implementation da


    I need to execute code before and after all phases have executed. I know that I could just use a PhaseListener, but it doesn't look like PhaseListener.afterPhase() is guaranteed to execute if an exception is thrown, so I was just going to basically make a new LifeCycle implementation with all of the code included in a try-finally block like so:

    public class MyLifeCycle implements LifeCycle {
    //
    // other methods
    //

    // the only method i'm changing
    public void execute(FacesContext facesContext) throws FacesException {

    // do my preprocessing
    try {
    // do the regular LifeCycle stuff
    } finally {
    // do my postprocessing
    }
    }

    }I'm guessing that I'll also have to make my own LifeCycleFactory and then have that factory return my implementation. How do I set this up in the faces-config.xml?

  • RELEVANCY SCORE 2.45

    DB:2.45:Get Noclassdeffounderror: Javax/Faces/Context/Facescontext Error At Runtime c9


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

    DB:2.45:Get Noclassdeffounderror: Javax/Faces/Context/Facescontext Error At Runtime c9

    Hi,

    It should work just fine, that class is defined in the JSF 1.2 library, are you trying to run it directly from JDeveloper?

    ~ Simon

  • RELEVANCY SCORE 2.41

    DB:2.41:Solution: Creator / Openreports Integration sm


    Here's a working solution to integrating a creator app and Openreports. Openreports is an opensource J2EE app that (amonst other things) serves JasperReport reports to end users. I wanted to provide some of these reports to my end users without having them log in to a separate app. Openreports provides an external interface but requires that you pass the username and password as part of the URL. This is fundamentally insecure so I scoured this forum for a solution. Someone had posted a method to read Sessionbean properties in a sevlet and this was the code I pinched. This solution lacks an errorhandler so if you have an IO error your userid / password might be compromised depending on your logging level and app server.

    See: http://forum.sun.com/jive/thread.jspa?forumID=123threadID=59942

    /*
    * getReport.java
    *
    * Created on 14 October 2006, 04:04
    *
    * To change this template, choose Tools | Options and locate the template under
    * the Source Creation and Management node. Right-click the template and choose
    * Open. You can then make changes to the template in the Source Editor.
    */

    package docman;

    /**
    *
    * @author [yossarian and others!]
    */
    /*
    * getReport.java
    *
    * Created on 14 October 2006, 03:47
    */

    import java.io.*;
    import java.net.URL;
    import java.net.URLConnection;
    import javax.faces.FacesException;
    import javax.faces.FactoryFinder;
    import javax.faces.context.FacesContext;
    import javax.faces.context.FacesContextFactory;
    import javax.faces.el.ValueBinding;
    import javax.faces.lifecycle.Lifecycle;
    import javax.faces.lifecycle.LifecycleFactory;
    import javax.faces.webapp.FacesServlet;

    import javax.servlet.*;
    import javax.servlet.http.*;

    /**
    *
    * @author
    * @version
    */
    public class getReport extends HttpServlet {

    private ServletConfig servletConfig;
    private ServletContext context;
    private FacesContextFactory facesContextFactory;

    private Lifecycle lifecycle;

    public void init(ServletConfig config) throws ServletException {
    this.servletConfig = config;
    this.context = config.getServletContext();
    super.init(config);


    // We need the FacesContextFactory in order to
    // obtain the FacesContext later (in doGet).
    // We need the Lifecycle for the call to the
    // FacesContextFactory.

    try {
    facesContextFactory =
    (FacesContextFactory)FactoryFinder.getFactory(FactoryFinder.FACES_CONTEXT_FACTORY);
    } catch (FacesException e) {
    Throwable rootCause = e.getCause();

    if (rootCause == null) {
    throw e;
    } else {
    throw new ServletException(e.getMessage(), rootCause);
    }
    }

    try {
    LifecycleFactory lifecycleFactory =
    (LifecycleFactory)FactoryFinder.getFactory(FactoryFinder.LIFECYCLE_FACTORY);
    String lifecycleId =
    servletConfig.getServletContext().getInitParameter(FacesServlet.LIFECYCLE_ID_ATTR);

    if (lifecycleId == null) {
    lifecycleId = LifecycleFactory.DEFAULT_LIFECYCLE;
    }

    lifecycle = lifecycleFactory.getLifecycle(lifecycleId);
    } catch (FacesException e) {
    Throwable rootCause = e.getCause();

    if (rootCause == null) {
    throw e;
    } else {
    throw new ServletException(e.getMessage(), rootCause);
    }
    }
    }

    public void destroy() {
    super.destroy();
    facesContextFactory = null;
    lifecycle = null;
    servletConfig = null;
    context = null;
    }

    /** Evaluate and return the given value binding expression
    * @param context The FacesContext for this web app
    * @param expr The value binding expression to be evaluated, such as "Sum is #{foo.sum}"
    * @return The value of the expression
    */
    protected Object getValue(FacesContext context, String expr) {
    ValueBinding vb = context.getApplication().createValueBinding(expr);
    return vb.getValue(context);
    }

    /** Find the named JSF managed bean
    * @param context The FacesContext for this web app
    * @param expr The name of the managed bean to be found, such as "SessionBean1"
    * @return The managed bean
    */
    protected Object getBean(FacesContext context, String name) {
    return context.getApplication().getVariableResolver().resolveVariable(context, name);
    }

    public void doGet(HttpServletRequest request, HttpServletResponse response)
    throws IOException, ServletException {
    // Acquire the FacesContext instance for this request

    processRequest(request,response);
    }
    /** Processes requests for both HTTP codeGET/code and codePOST/code methods.
    * @param request servlet request
    * @param response servlet response
    */
    protected void processRequest(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException {


    FacesContext context =
    facesContextFactory.getFacesContext(servletConfig.getServletContext(), request,
    response, lifecycle);

    //String targetName = request.getParameter("firstName");
    Boolean userLoggedOn = (Boolean)getValue(context,"#{SessionBean1.userLoggedOn}");
    //System.out.println("SessionBeanReader: userid is "+userid);
    if (!userLoggedOn.booleanValue()){

    response.sendRedirect("/docman/");
    } else {
    // try{
    String orTarget="http://localhost:8080/openreports2f/executeReport.action?";

    orTarget +=request.getQueryString()+"userName=xxxpassword=yyy";

    URL openreports;
    URLConnection orc;
    InputStream in ;
    try{
    openreports= new URL(orTarget);

    orc = openreports.openConnection();
    in = orc.getInputStream();
    response.setContentType(orc.getContentType());
    response.setContentLength(orc.getContentLength());
    }catch (Exception ex){
    orTarget="http://localhost:29080/openreports2f/executeReport.action?";

    orTarget +=request.getQueryString()+"userName=xxxpassword=yyy";
    openreports= new URL(orTarget);

    orc = openreports.openConnection();
    in = orc.getInputStream();
    response.setContentType(orc.getContentType());
    response.setContentLength(orc.getContentLength());
    }


    ServletOutputStream out = response.getOutputStream();
    byte[] bytes = new byte [4096];


    int x;
    while ((x=in.read(bytes)) != -1)
    out.write(bytes,0, x);
    in.close();
    out.close();

    // }catch (Exception ex){log (ex.getMessage(), ex);
    // }
    }
    // TODO output your page here





    }



    /** Handles the HTTP codePOST/code method.
    * @param request servlet request
    * @param response servlet response
    */
    protected void doPost(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException {
    processRequest(request, response);
    }

    /** Returns a short description of the servlet.
    */
    public String getServletInfo() {
    return "Short description";
    }
    // /editor-fold
    }Other things this might be handy for are reading file attachments etc etc. Here's a trick I picked up in binding to this servlet that makes it appear to the user that they are downloading static files and gives their downloads a usable name even though no name exists in the underlying report:

    I have a table component on a page with embedded hyperlinks that link to the various reports. The Url of my binding target is set thus:
    /getReport/DFR#{currentRow.value['d1.dfrid']}.pdf?reportId=#{currentRow.value['d1.reportformat']}exportType=0id=#{currentRow.value['d1.dfrid']}Instead of /getReport?reportId=#{currentRow.value['d1.reportformat']}exportType=0id=#{currentRow.value['d1.dfrid']}So the end user appears to be downloading a legit file that saves correctly under an acceptable name.

    To make this work i had to do the following in my web.xml:
    servlet-mapping
    servlet-namegetReport/servlet-name
    url-pattern/getReport/*/url-pattern
    /servlet-mappingnote the trailing "/*"

    regards - yossarian

    DB:2.41:Solution: Creator / Openreports Integration sm

    Sorry - not able to edit the original post. Search terms: Openreports; JasperReports; Servlet; Bean Properties; hiding password; External context; pdf; xls; excel; rtf; adobe; report; hyperlink; binding; web.xml;

  • RELEVANCY SCORE 2.40

    DB:2.40:Session.Readobject(..) V/S Readobjectquery cd


    Is there any difference between using

    session.readObject(DAO.class, expr) and
    ReadObjectQuery(DAO.class, expr)?

    Thanks,

    Rajiv

    DB:2.40:Session.Readobject(..) V/S Readobjectquery cd

    Well, they're a very easy way to manage query re-use, and therefore reduce garbage collection.

    Additionally, since named query construct can be separated from named query execution, named queries provide an easy way to abstract toplink in a service layer. All your service layer would provide would be mechanisms for executing queries by name. Your service layer could then pass through to toplink.

    There are lots of benefits to this:
    1. Query reuse. Implies less garbage which implies faster performance.
    2. Abstraction. No toplink code outside the service layer (as you call it) (excepting perhaps valueholders).
    3. Cleanliness. Your code has one mechanism for executing queries. By name. Why have lots of confusing ways to do the same thing?
    4. Localization of queries. A surprisingly overlooked benefit. Named queries will normally be defined together, in one code location (eg 1 package). This makes it very easy to identify badly performing queries and re-write them without having to play hunt the expression builder.

    Christian

  • RELEVANCY SCORE 2.40

    DB:2.40:Adf Faces: Af:Foreach - Where Is The Variable Bound mz


    I'm trying to write a method that determines a value based on the current value of the iterator variable in an af:forEach element. So I can do something like this:

    af:forEach items="#{page.getSomeItems}" var="var"
    af:outputText text="#{page.forEachValue}"/
    /af:forEach

    Assuming that getForEachValue looks like this:

    public String getForEachValue() {
    SomeType t = (SomeType) getVariable("var");
    }

    And getVariable looks like this:

    public Object getVariable( String var ) {
    FacesContext ctx = getFacesContext();
    return ctx.getApplication().getVariableResolver().resolveVariable(ctx, var);
    }

    I always come up with the object bound to "var" as null. Where is this variable bound? How can I access it programmatically? I've also tried using the statusVar binding and it has the same problem.

    Thanks.

    P.S. I've also tried evaluating the EL expression "#{var}" using this method:

    public static Object eval(String expr) {
    FacesContext ctx = getFacesContext();
    ValueBinding vb = ctx.getApplication().createValueBinding(expr);
    return vb.getValue(ctx);
    }

    Still no luck, it comes back null as well.

    Any Ideas?

    DB:2.40:Adf Faces: Af:Foreach - Where Is The Variable Bound mz

    A special map proved to be the best solution - that was a clever work-around.

    Thanks.

  • RELEVANCY SCORE 2.40

    DB:2.40:Re: How To Find Error Msg Is Already There In A Validatorbefore Raising A Error k1


    Hi,

    one option is to set a memory flag in request scope and if the flag is set, don't set the message again. The request scope is cleared after each request so that there is no need for manual housekeeping. Another option to try is to call FacesContext - getMessages

    see JavaDoc
    --------------
    - http://docs.oracle.com/javaee/5/api/javax/faces/context/FacesContext.html#getMessages%28java.lang.String%29
    - http://docs.oracle.com/javaee/5/api/javax/faces/context/FacesContext.html#getMessages%28%29

    Every message should be registered with a clientId so you can identify it

    Frank

    DB:2.40:Re: How To Find Error Msg Is Already There In A Validatorbefore Raising A Error k1

    search "handling JBO errors ADF" in google.
    And go through the first two websites
    i.e.
    1)Differences of Handling JboException in Oracle ADF - Andrejus
    2)Technical Essentials: Error handling in adf

  • RELEVANCY SCORE 2.39

    DB:2.39:Custom Viewhandler Does Not Work With Jboss As 7.1.1 a1



    I want to implement a custom ViewHandler. Currently I'm only forwarding all calls to the default Viewhandler, but if I enable this ViewHandler in my faces-config.xml, the preRenderView event type (and maybe other functionality) is broken.

    Does anybody no what I'm doing wrong?

    I'm using JBoss AS 7.1.1 and PrimeFaces 3.5.

    Thanks.

    public class ReverseProxyViewHandler extends ViewHandler {

    ViewHandler defaultHandler;

    public ReverseProxyViewHandler(ViewHandler defaultHandler) {
    this.defaultHandler = defaultHandler;
    }

    @Override
    public Locale calculateLocale(FacesContext context) {
    return defaultHandler.calculateLocale(context);
    }

    @Override
    public String calculateRenderKitId(FacesContext context) {
    return defaultHandler.calculateRenderKitId(context);
    }

    @Override
    public UIViewRoot createView(FacesContext context, String viewId) {
    return defaultHandler.createView(context, viewId);
    }

    @Override
    public String getActionURL(FacesContext context, String path) {
    return defaultHandler.getActionURL(context, path);
    }

    @Override
    public String getResourceURL(FacesContext context, String path) {
    return defaultHandler.getResourceURL(context, path);
    }

    @Override
    public void renderView(FacesContext context, UIViewRoot viewToRender) throws IOException, FacesException {
    defaultHandler.renderView(context, viewToRender);
    }

    @Override
    public UIViewRoot restoreView(FacesContext context, String viewId) {
    return defaultHandler.restoreView(context, viewId);
    }

    @Override
    public void writeState(FacesContext context) throws IOException {
    defaultHandler.writeState(context);
    }

    }

    DB:2.39:Custom Viewhandler Does Not Work With Jboss As 7.1.1 a1


    I want to implement a custom ViewHandler. Currently I'm only forwarding all calls to the default Viewhandler, but if I enable this ViewHandler in my faces-config.xml, the preRenderView event type (and maybe other functionality) is broken.

    Does anybody no what I'm doing wrong?

    I'm using JBoss AS 7.1.1 and PrimeFaces 3.5.

    Thanks.

    public class ReverseProxyViewHandler extends ViewHandler {

    ViewHandler defaultHandler;

    public ReverseProxyViewHandler(ViewHandler defaultHandler) {
    this.defaultHandler = defaultHandler;
    }

    @Override
    public Locale calculateLocale(FacesContext context) {
    return defaultHandler.calculateLocale(context);
    }

    @Override
    public String calculateRenderKitId(FacesContext context) {
    return defaultHandler.calculateRenderKitId(context);
    }

    @Override
    public UIViewRoot createView(FacesContext context, String viewId) {
    return defaultHandler.createView(context, viewId);
    }

    @Override
    public String getActionURL(FacesContext context, String path) {
    return defaultHandler.getActionURL(context, path);
    }

    @Override
    public String getResourceURL(FacesContext context, String path) {
    return defaultHandler.getResourceURL(context, path);
    }

    @Override
    public void renderView(FacesContext context, UIViewRoot viewToRender) throws IOException, FacesException {
    defaultHandler.renderView(context, viewToRender);
    }

    @Override
    public UIViewRoot restoreView(FacesContext context, String viewId) {
    return defaultHandler.restoreView(context, viewId);
    }

    @Override
    public void writeState(FacesContext context) throws IOException {
    defaultHandler.writeState(context);
    }

    }

  • RELEVANCY SCORE 2.39

    DB:2.39:Error When Deploying To Oracle App Server 9k


    Hi

    Issue 1)

    I created a new web project using JSF in JDeveloper 10.1.3.4.
    When I deploy to the server (10.1.3.4) using the Enterprise manager, I get following error:
    [May 11, 2009 2:45:53 PM] Exception: NoClassDefFoundError: javax/faces/FacesException
    [May 11, 2009 2:45:53 PM] Operation failed with error: javax/faces/FacesException

    Can anybody let me know if I am missing any libraries to be included during deploy time?

    Issue 2)

    I tried deploying another application using struts. I created this project in JDeveloper using New Web Project.

    When the application loads, I get following error:
    09/05/11 12:54:39.475 airportweather: Error preloading servlet

    javax.servlet.ServletException: Error instantiating servlet 'action'. Servlet class org.apache.struts.action.ActionServlet not found
    in web-application airportweather
    at com.evermind.server.http.HttpApplication.servletClassNotFound(HttpApplication.java:4886)
    at com.evermind.server.http.HttpApplication.findServlet(HttpApplication.java:4852)
    at com.evermind.server.http.HttpApplication.findServlet(HttpApplication.java:4754)
    at com.evermind.server.http.HttpApplication.initPreloadServlets(HttpApplication.java:4942)
    at com.evermind.server.http.HttpApplication.initDynamic(HttpApplication.java:1144)
    at com.evermind.server.http.HttpApplication.init(HttpApplication.java:741)

    I have been following the steps to deploy from following page:
    Deploying a Web Application to Oracle Application Server 10g
    http://www.oracle.com/technology/obe/obe1013jdev/deployment/deployment.htm#t0s3

    The struts project which is deployed does not contain orion-web.xml or orion-application.xml.

    Appreciate if anyone can help me.

    Thanks
    Badri

    DB:2.39:Error When Deploying To Oracle App Server 9k

    Please see the following thread. I believe it may help you with your deployment issues.

    Unable to bind web applications during deployment

    Tony

  • RELEVANCY SCORE 2.38

    DB:2.38:Deploy .War Created Using Ant ck


    Hi

    am trying to deploy a .war into oc4j AS through its GUI console.

    During the course of deploying the .war file am entering these info....

    parent application : default

    Bind module to site : default-web-site

    but when i deploy a, getting this...

    [Mar 11, 2008 2:59:12 PM] Application Deployer for test333 STARTS.
    [Mar 11, 2008 2:59:12 PM] Copy the archive to D:\Jdev10\j2ee\home\applications\test333.ear
    [Mar 11, 2008 2:59:12 PM] Initialize D:\Jdev10\j2ee\home\applications\test333.ear begins...
    [Mar 11, 2008 2:59:12 PM] Unpacking test333.ear
    [Mar 11, 2008 2:59:12 PM] Done unpacking test333.ear
    [Mar 11, 2008 2:59:12 PM] Unpacking mymap.war
    [Mar 11, 2008 2:59:13 PM] Done unpacking mymap.war
    [Mar 11, 2008 2:59:13 PM] Initialize D:\Jdev10\j2ee\home\applications\test333.ear ends...
    [Mar 11, 2008 2:59:13 PM] Starting application : test333
    [Mar 11, 2008 2:59:13 PM] Initializing ClassLoader(s)
    [Mar 11, 2008 2:59:13 PM] Initializing EJB container
    [Mar 11, 2008 2:59:13 PM] Loading connector(s)
    [Mar 11, 2008 2:59:13 PM] Starting up resource adapters
    [Mar 11, 2008 2:59:13 PM] Initializing EJB sessions
    [Mar 11, 2008 2:59:13 PM] Committing ClassLoader(s)
    [Mar 11, 2008 2:59:13 PM] Initialize mymap begins...
    [Mar 11, 2008 2:59:13 PM] Initialize mymap ends...
    [Mar 11, 2008 2:59:13 PM] Started application : test333
    [Mar 11, 2008 2:59:13 PM] Binding web application(s) to site default-web-site begins...
    [Mar 11, 2008 2:59:13 PM] Binding mymap web-module for application test333 to site default-web-site under context root mymap
    [Mar 11, 2008 2:59:14 PM] Exception: NoClassDefFoundError: javax/faces/FacesException
    [Mar 11, 2008 2:59:14 PM] Operation failed with error: javax/faces/FacesException

    DB:2.38:Deploy .War Created Using Ant ck

    Hi

    am trying to deploy a .war into oc4j AS through its GUI console.

    During the course of deploying the .war file am entering these info....

    parent application : default

    Bind module to site : default-web-site

    but when i deploy a, getting this...

    [Mar 11, 2008 2:59:12 PM] Application Deployer for test333 STARTS.
    [Mar 11, 2008 2:59:12 PM] Copy the archive to D:\Jdev10\j2ee\home\applications\test333.ear
    [Mar 11, 2008 2:59:12 PM] Initialize D:\Jdev10\j2ee\home\applications\test333.ear begins...
    [Mar 11, 2008 2:59:12 PM] Unpacking test333.ear
    [Mar 11, 2008 2:59:12 PM] Done unpacking test333.ear
    [Mar 11, 2008 2:59:12 PM] Unpacking mymap.war
    [Mar 11, 2008 2:59:13 PM] Done unpacking mymap.war
    [Mar 11, 2008 2:59:13 PM] Initialize D:\Jdev10\j2ee\home\applications\test333.ear ends...
    [Mar 11, 2008 2:59:13 PM] Starting application : test333
    [Mar 11, 2008 2:59:13 PM] Initializing ClassLoader(s)
    [Mar 11, 2008 2:59:13 PM] Initializing EJB container
    [Mar 11, 2008 2:59:13 PM] Loading connector(s)
    [Mar 11, 2008 2:59:13 PM] Starting up resource adapters
    [Mar 11, 2008 2:59:13 PM] Initializing EJB sessions
    [Mar 11, 2008 2:59:13 PM] Committing ClassLoader(s)
    [Mar 11, 2008 2:59:13 PM] Initialize mymap begins...
    [Mar 11, 2008 2:59:13 PM] Initialize mymap ends...
    [Mar 11, 2008 2:59:13 PM] Started application : test333
    [Mar 11, 2008 2:59:13 PM] Binding web application(s) to site default-web-site begins...
    [Mar 11, 2008 2:59:13 PM] Binding mymap web-module for application test333 to site default-web-site under context root mymap
    [Mar 11, 2008 2:59:14 PM] Exception: NoClassDefFoundError: javax/faces/FacesException
    [Mar 11, 2008 2:59:14 PM] Operation failed with error: javax/faces/FacesException

  • RELEVANCY SCORE 2.38

    DB:2.38:Error Message Problem When Validation kz


    Can required validation use together with the javax.faces Validator? Because when i use both, if i fill in all the require value it will directly go to success page it wont proceed the javax,faces Validator check, but is i left out 1 required field and clicked submit button the javax.faces.Validator work fine

    DB:2.38:Error Message Problem When Validation kz

    Can required validation use together with the javax.faces Validator? Because when i use both, if i fill in all the require value it will directly go to success page it wont proceed the javax,faces Validator check, but is i left out 1 required field and clicked submit button the javax.faces.Validator work fine

  • RELEVANCY SCORE 2.37

    DB:2.37:Is This A Typo In The Javadoc? (Invokeoncomponent) 37


    Hello,

    I am trying to understand how to use the invokeOnComponent method (jsf 1.2)

    Have a look here and tell me why is says "invokeOnComponent" in the contextcallback and not invokeContextCallback"???

    private UIComponent found = null;

    private void doFind(FacesContext context, String clientId) {
    context.getViewRoot().invokeOnComponent(context, clientId,
    new ContextCallback() {
    public void invokeOnComponent(FacesContext context,
    UIComponent component) {
    found = component;
    }
    });
    }Is this a typo?? What I am getting wrong here??

    Julien.

    Here:

    http://java.sun.com/javaee/5/docs/api/javax/faces/component/UIComponent.html

    DB:2.37:Is This A Typo In The Javadoc? (Invokeoncomponent) 37

    Hello Raymond!
    Someone reported the bug to Ryan.Lubke@sun.com
    Thanks,
    Julien.

  • RELEVANCY SCORE 2.37

    DB:2.37:Javax.Servlet.Servletexception: Servlet Execution Threw An Exception ms


    Dear all,

    I am new to the JSF, I am trying to run an application which is present at [http://www.javabeat.net/articles/11-introduction-to-java-server-faces-4.html|http://www.javabeat.net/articles/11-introduction-to-java-server-faces-4.html] as per the steps that were mentioned in that page, but when I am trying to run that application I am getting an exception like

    type Exception report

    exception

    javax.servlet.ServletException: Servlet execution threw an exception

    root cause

    java.lang.NoClassDefFoundError: javax/servlet/jsp/jstl/core/Config
    *com.sun.faces.application.ViewHandlerImpl.executePageToBuildView(ViewHandlerImpl.java:421)*
    *com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:114)*
    *com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:106)*
    *com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)*
    *com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144)*
    *javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)*

    DB:2.37:Javax.Servlet.Servletexception: Servlet Execution Threw An Exception ms

    mahi wrote:
    root cause
    java.lang.NoClassDefFoundError: javax/servlet/jsp/jstl/core/ConfigThe mentioned class is missing in the classpath. It's part of the JSTL taglibrary. Add it to the classpath.

  • RELEVANCY SCORE 2.37

    DB:2.37:Re: How To Get The Value Of The Button Pressed 9x


    You should get the ValueExpression for the attribute name, not for the attribute value. The attribute name is in this case "value".

    Read the API docs. They aren't for show only: http://java.sun.com/javaee/5/docs/api/javax/faces/component/UIComponent.html#getValueExpression(java.lang.String)

    DB:2.37:Re: How To Get The Value Of The Button Pressed 9x

    Got a working method!

    Instead of trying to use anything fancy, simply pass the name in the action listener value
    h:commandButton value="#{TextMsg.instantActivate3}"
    action="submit" actionListener="#{Transaction.action}"
    f:attribute name="variableAmount"
    value="instantActivate3" /
    /h:commandButtonThen, in the event listener, take the value passed and do a lookup like any other situation where you want to look up the text.

    String value1 = (String) event.getComponent ().getAttributes ().get (
    "variableAmount");
    String value2 = Utils.getMappedMessage (value1);
    this.amount = value2;
    refresh ();and
    public static String getMappedMessage (String message)
    {
    String mappedMessage;

    FacesContext context = FacesContext.getCurrentInstance ();
    mappedMessage = Utils.getMessageResourceString (
    // context.getApplication().getMessageBundle(),
    Constants.BUNDLE_NAME, message, null, context.getViewRoot ()
    .getLocale ());

    return mappedMessage;
    }

  • RELEVANCY SCORE 2.37

    DB:2.37:Grammar Help 71


    Hey, sorry if this is in the wrong subforum. I'm currently working on creating grammar rules for a compiler.
    I'm stuck at this part
    atomer - num | id | functioncall

    expr - term expr'
    |atomer expr'
    expr' - term expr'
    |- term expr'
    |e
    term - term' * num
    |term' / num
    |num
    term'- / num term'
    |* num term'
    |e
    I tried to construct the problem

    expr = term expr'
    = term
    = term' * num
    = / num term' * num
    = / num * num

    I think i got the expr and expr' part right, I'm not sure about the term and term' part.

    Any suggestions?

    DB:2.37:Grammar Help 71

    Hi,
    Could you please explain which Microsoft product your question relates to?
    Thanks,
    Zoli

  • RELEVANCY SCORE 2.37

    DB:2.37:Deploying An Application With Managed Libraries xj


    Hi,
    I am trying to deploy an Applicaition on Oracle App Server 10.1.3.
    I develop the application in Jdev 1013
    in my JDeveloper descriptor, i edit the Properties - File Groups/Web-INF/lib - Filters, i deselect the Merged contents.

    Create a war file.

    All libraries that are required [ie. present in the list JDeveloper descriptor, i edit the Properties - File Groups/Web-INF/lib - Filters,], i jar them to create Portal.jar.
    i place the jar at D:\Temp\Portal.jar.
    This location is on the same machine where the Oracle App Server Runs.

    I log into the Oracle Application Server - Enterprise Manager, and Create an entry in oc4J:home - Shared Libraries
    Specify the Path where the Portal.jar exists.

    I then deploy the Application specifing the location where the .war file is present. - procedure is Deploy-Select Archive - Application Attributes.
    In Deploy settings, i click on Deployment Tasks - Configure Class Loading, i go to Import Shared Libraries and check Portal, and then I click on Deploy.

    I then get Deploying Application Failed with the following Errors
    Aug 19, 2006 2:54:02 PM] Exception: NoClassDefFoundError: javax/faces/FacesException
    [Aug 19, 2006 2:54:02 PM] Operation failed with error: javax/faces/FacesException
    ..
    I don't understand why?

    My need is that all Libraries that are required by the Application, I Jar it and place it as a Shared Library on the Server. So whenever i deploy an application it should include the shared libraries present on the server.

    This would ensure my war file is small.

    Instead of all my applications inculding the jar files in thier respietice war files, i would like to place the requiste war in a single place on the Server and link the application to use that shared library war.

    Thanks in advance

    Vishnu

    DB:2.37:Deploying An Application With Managed Libraries xj

    Hi,
    I am trying to deploy an Applicaition on Oracle App Server 10.1.3.
    I develop the application in Jdev 1013
    in my JDeveloper descriptor, i edit the Properties - File Groups/Web-INF/lib - Filters, i deselect the Merged contents.

    Create a war file.

    All libraries that are required [ie. present in the list JDeveloper descriptor, i edit the Properties - File Groups/Web-INF/lib - Filters,], i jar them to create Portal.jar.
    i place the jar at D:\Temp\Portal.jar.
    This location is on the same machine where the Oracle App Server Runs.

    I log into the Oracle Application Server - Enterprise Manager, and Create an entry in oc4J:home - Shared Libraries
    Specify the Path where the Portal.jar exists.

    I then deploy the Application specifing the location where the .war file is present. - procedure is Deploy-Select Archive - Application Attributes.
    In Deploy settings, i click on Deployment Tasks - Configure Class Loading, i go to Import Shared Libraries and check Portal, and then I click on Deploy.

    I then get Deploying Application Failed with the following Errors
    Aug 19, 2006 2:54:02 PM] Exception: NoClassDefFoundError: javax/faces/FacesException
    [Aug 19, 2006 2:54:02 PM] Operation failed with error: javax/faces/FacesException
    ..
    I don't understand why?

    My need is that all Libraries that are required by the Application, I Jar it and place it as a Shared Library on the Server. So whenever i deploy an application it should include the shared libraries present on the server.

    This would ensure my war file is small.

    Instead of all my applications inculding the jar files in thier respietice war files, i would like to place the requiste war in a single place on the Server and link the application to use that shared library war.

    Thanks in advance

    Vishnu

  • RELEVANCY SCORE 2.37

    DB:2.37:Difficulties With Error Codes C2504 And C2248 s1


     
    Hello, I am currently having two errors that I just can't seem to figure out.  The first is error code C2504 'Expr' base class undefined  and the second is error code c2248 'Expr' :: 'Expr' cannot access private member declared in class 'Expr'.
     
    My program uses a hierarchy of classes to store mathematical expressions, which can be evaluated using a visitor class.  Expr is a virtual class that holds all expressions, literal, binary, and unary.  Binary is a subclass of Expr, and holds all binary operations, such as addition, subtraction, and multiplication.  Add is a subclass of Binary, and uses pointers _left and _right to hold its operands.  Each class is also located in its own .h file.
     
    I have pasted the code below, and noted where the error occurs.  I would greatly appreciate any help.  I've been stuck on this one for at least 8 hours, and I know the solution can't be that difficult
     
    //code for Expr.h
    #ifndef EXPR
    #define EXPR
     
    class Visitor;
     
    #include Visitor.h
     
    class Expr
    {
    public:
    virtual void Accept(Visitor) = 0;
    ~Expr();
    private:
    Expr();
    Expr(Expr);
    };
    #endif
     
    //code for Binary.h
    #ifndef BINARY
    #define BINARY
     
    #include Expr.h
     
    class Binary: public Expr
    {
    public:
    virtual void Accept(Visitor) = 0;
    Expr* getright();
    Expr* getleft();
    ~Binary();
     
    protected:
    Binary(Expr* left, Expr* right): _left(left), _right(right){};
     
    private:
    Expr* _left;
    Expr* _right;
    Binary();
    Binary(Binary);
    };
     
    #endif
     
     
    //code for Add.h
    #ifndef ADD
    #define ADD
     
    #include Expr.h
    #include Binary.h
     
    class Add: public Binary
    {
    public:
    Add(Expr* left, Expr* right): _left(left), _right(right){};
    Expr* getright()
    {
    return _right;
    }
    Expr* getleft()
    {
    return _left;
    }
    ~Add();
    Add();
    virtual void Accept(Visitor v) {v.visitadd(this);}
    private:
    Expr* _left;
    Expr* _right;
    Add(Add);
    };
    #endif

    DB:2.37:Difficulties With Error Codes C2504 And C2248 s1

     
    I just tried it, and unfortunately, that actually caused more errors.  After changing the default constructor of Expr from private to protected, the visitor class was no longer recognized, and all of my pointers to Expr failed to work.
     
    I'm beginning to think my code my be cursed.

  • RELEVANCY SCORE 2.37

    DB:2.37:Bundlevariableresolver Not Found kc


    I have installed web logic server 10.3(JDeveloper 11.1.2.1.0) in linux and when i deploy my application to the managed server i get this error:

    ConfigurationException:
    Source Document : zip:/optDev/Oracle/Middleware/user_projects/domains/adf_dev/servers/Proveedores/tmp/_WL_user/adf.oracle.domain.webapp/dlupj7/
    WEB-INF/lib/bundleresolver.jar!/META-INF/faces-config.xml
    Cause: Class 'oracle.javatools.resourcebundle.BundleVariableResolver' is missing a
    runtime dependecy: java.lang.NoClassDefFoundError: javax/faces/el/VariableResolver

    DB:2.37:Bundlevariableresolver Not Found kc

    Ok now it is resolved. I have added the jsf and jstl libraries to my proyect and configured the weblogic-application.xml.

  • RELEVANCY SCORE 2.36

    DB:2.36:Expressions jz



    hello all

    is there any way to apply aggr expr on another aggr expr ???

    thanks

    phoenix

    DB:2.36:Expressions jz


    may be this helps

    http://community.qlik.com/message/122870#122870

    thanks meher

  • RELEVANCY SCORE 2.36

    DB:2.36:Tomcat 6.0 Class And Tag Combination Error 8c


    Hi,

    I am having a problem in the following tag on a JSP page with the following tag:

    Not working:
    tdp class="styleBoldCenterText"strongBILL OF LADING/strong/p/td!-- Col 2 --

    working perfect with: (removing strong tag)
    tdp class="styleBoldCenterText"BILL OF LADING/p/td!-- Col 2 --

    working perfect with: (removing class)
    tdpstrongBILL OF LADING/strong/p/td!-- Col 2 --

    The resulting .war file doesn't generate the file structure, logging the following error:

    Feb 13, 2008 8:38:51 AM org.apache.catalina.core.StandardContext listenerStart
    SEVERE: Error configuring application listener of class com.sun.faces.application.WebappLifecycleListener
    java.lang.NoClassDefFoundError: javax/faces/FacesException
    at com.sun.faces.application.WebappLifecycleListener.clinit(WebappLifecycleListener.java:67)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
    at java.lang.reflect.Constructor.newInstance(Unknown Source)
    at java.lang.Class.newInstance0(Unknown Source)
    at java.lang.Class.newInstance(Unknown Source)
    at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3774)
    at org.apache.catalina.core.StandardContext.start(StandardContext.java:4337)
    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
    at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:825)
    at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:714)
    at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:490)
    at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1206)
    at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:293)
    at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
    at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1337)
    at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1601)
    at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1610)
    at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1590)
    at java.lang.Thread.run(Unknown Source)
    Feb 13, 2008 8:38:51 AM org.apache.catalina.core.StandardContext listenerStart
    SEVERE: Skipped installing application listeners due to previous error(s)

    The class definition is:
    .styleBoldCenterText
    {
    text-align:center;
    }

    Any help is welcome,

    JB

    Edited by: jbarraganpf on Feb 13, 2008 7:54 AM

    Edited by: jbarraganpf on Feb 13, 2008 7:56 AM

  • RELEVANCY SCORE 2.34

    DB:2.34:Classloading Issue With Beanvalidator pd



    Hi,I've got a classloading issue with BeanValidator and the a resource bundle defined in the faces-config.xml.The problem is within the following code in the org.richfaces.validator.BeanValidator class.

    private ResourceBundle getCurrentResourceBundle(Locale locale) {
    if (null == FacesContext.getCurrentInstance()
    || null == FacesContext.getCurrentInstance().getApplication()) {
    throw new FacesException(FACES_CONTEXT_IS_NULL);
    }
    String appBundle = FacesContext.getCurrentInstance().getApplication()
    .getMessageBundle();
    if (null == appBundle || null == locale) {
    return null;
    }
    ResourceBundle bundle = ResourceBundle.getBundle(appBundle, locale);
    return bundle;
    }

  • RELEVANCY SCORE 2.34

    DB:2.34:Session Bean Navigation Problem 13


    Hello all,
    I'm just learning faces, be kind to me, hear goes.
    My set up is this:

    Creator with all of the updates
    Windows server 2003
    MySql version: server 4.1
    Mysql connector: 3.0.15-ga
    Driver 'org.gjt.mm.mysql.Driver'
    I am emulating the two page tutorial "data base insert delete update" with a MySql database. The tutorial works fine with the supplied database. I am having trouble when I click the update button I get a null pointer exception. The two session variables are jobNumber (Sql INT) and userID (Sql VARCHAR). In page one I put an error message which showed the correct variables in the session bean OK.

    Page one code:
    public String update_action() {
    // User event code here...

    getSessionBean1().setJobNumber((Integer)getValue("#{currentRow ['jobNumber']}"));
    //error("Here is the job number "+getSessionBean1().getJobNumber()+". Here is the user ID "+getSessionBean1().getUserID());
    return "godetails";

    public void dropdown1_processValueChange(ValueChangeEvent vce) {
    // User event code here...
    //Dropdown List Event Code
    //Part of the Using Databound Components to Access Databases Tutorial
    //You can find this tutorial on the web --
    //use the link on the Welcome page
    try {
    //Save the newly selected personId
    getSessionBean1().setUserID((String)dropdown1.getValue());
    //and get the selected person's trips
    dataTable1Model.setObject(1,dropdown1.getValue());
    dataTable1Model.execute();
    }catch (Exception e){
    log("page 1 person change exception",e);
    error("Exception changing person id:"+e);
    }//end try catch

    }

    public Page1() {
    // editor-fold defaultstate="collapsed" desc="Creator-managed Component Initialization"
    try {
    userRowSet.setDataSourceName("java:comp/env/jdbc/datasource2");
    userRowSet.setCommand("SELECT ALL user.userID, user.userFirstName, user.userSurname, user.userEmail, user.userDesignation FROM user");
    faultsRowSet.setDataSourceName("java:comp/env/jdbc/datasource2");
    faultsRowSet.setCommand("SELECT ALL faults.jobNumber, faults.jobType, faults.jobComments, faults.jobInDate, faults.deviceID, faults.userID, device.deviceLocation, device.deviceType FROM faults INNER JOIN device ON faults.deviceID=device.deviceID WHERE faults.userID=?");
    dataTable1Model.setDataCacheKey("com.sun.datacache.Page1.faultsRowSet");
    dataTable1Model.setRowSet(faultsRowSet);
    dataTable1Model.setSchemaName("");
    dataTable1Model.setTableName("faults");
    } catch (Exception e) {
    log("Page1 Initialization Failure", e);
    throw e instanceof javax.faces.FacesException ? (FacesException) e: new FacesException(e);
    }
    // /editor-fold
    // Additional user provided initialization code
    try {
    //If it is the first time the app has been run,
    //personId hasn't been set on SessionBean1 yet.
    //Set personId on SessionBean1 to the first person that will be displayed
    if (this.getSessionBean1().getUserID().equals("")){
    userRowSet.execute();
    userRowSet.first();
    this.getSessionBean1().setUserID(new String(userRowSet.getString("userID")));
    }
    //Whenever after they come to this page,
    //set the dropdown to the person who was last selected
    else {
    dropdown1.setValue(this.getSessionBean1().getUserID());
    }
    //Get the trips for the current personId
    dataTable1Model.setObject(1,this.getSessionBean1().getUserID());
    //Note if you apply paging (navigation buttons)to your data table,
    //you will want to add checks to avoid executing every time
    //so it can remember your page on navigation events
    dataTable1Model.execute();
    }catch (Exception ex){
    throw new FacesException(ex);
    }
    }

    Meanwhile in the session bean:

    jobNumber =new Integer(0);
    userID =new String();

    This seems to work ok because the error message brings up the correct variables from the session bean every time.

    and in page two:

    // Additional user provided initialization code
    try {
    //Synchronize rowsets
    faultsRowSet.setObject(1,getSessionBean1().getJobNumber());
    userRowSet.setObject(1,getSessionBean1().getUserID());
    userRowSet.execute();
    log("page2 const after person execute");
    faultsRowSet.execute();
    log("page2 const after trip execute");
    //Position to update the trip record
    faultsRowSet.next();
    }catch (Exception ex){
    throw new FacesException(ex);
    }

    Do you think it may be a difference between varchar and String? Does annybody have a stategy I can use to see the variables being transmitted between the session bean and page two?
    It's driving me nuts.
    Also I think there is a bug in Creator.
    when the properties panel is "docked" and appears as a jump-out on the right side of the screen I can't set "CONCUR_UPDATABLE" ...but it works fine when the window is free floating. I took me ages to work this one out.
    Many Thanks,
    Phil Shields.

    DB:2.34:Session Bean Navigation Problem 13

    I think I may have solved it myself??
    In the MySql database the primary key for the faults table was an int (5)..I changed it to mediumint which is (11) also on page two I deleted all the components except jobNumber and userID, it worked.
    Then I added one by one all of the components that i previously deleted and it still worked.

    I works fine and dandy and I learnt heaps, good fun.

  • RELEVANCY SCORE 2.34

    DB:2.34:Html Component Sources From Ri kp


    I noticed the source code for the classes in package javax.faces.component.html appear to be missing from jsf-1.2_04-b10-p01-src.zip. That is, the directory jsf-1.2_04-b10-p01-src.zip!javaserverfaces_sources/jsf-api/src/javax/faces/component/html contains only the package.html file.

    Is there a reason for this? Can anybody point me to where the files are?

    DB:2.34:Html Component Sources From Ri kp

    Those are generated and located in \jsf-api\build\generate\javax\faces\component\html.

  • RELEVANCY SCORE 2.33

    DB:2.33:Weblogic Error Javax/Faces/Context/Partialviewcontextwrapper ka


    Hello.

    I have the following problem.

    I develop application Spring+richfaces 3.3.3 +hibernate 3.0 and deploy in weblogic 10.3.5 (Jrockit) on RedHatLinux Enterprise 5.5 64 bits, but when deploy appplication and the console show what is ok, when load init page show message javax/faces/context/PartialViewContextWrapper.

    I investigate and the problem is what my war use jsf 1.2 and when weblogic load page not found class javax/faces/context/PartialViewContextWrapper because this is in jsf 2.0.

    My question is how I can configurate weblogic for load application?

    Thank you

    DB:2.33:Weblogic Error Javax/Faces/Context/Partialviewcontextwrapper ka

    Hello.

    I have the following problem.

    I develop application Spring+richfaces 3.3.3 +hibernate 3.0 and deploy in weblogic 10.3.5 (Jrockit) on RedHatLinux Enterprise 5.5 64 bits, but when deploy appplication and the console show what is ok, when load init page show message javax/faces/context/PartialViewContextWrapper.

    I investigate and the problem is what my war use jsf 1.2 and when weblogic load page not found class javax/faces/context/PartialViewContextWrapper because this is in jsf 2.0.

    My question is how I can configurate weblogic for load application?

    Thank you

  • RELEVANCY SCORE 2.32

    DB:2.32:Java And Javax 17


    what is the difference between java and javax? and why is SWING implemeted in 'javax'?

    DB:2.32:Java And Javax 17

    Packages that begin with "java" are base packages.

    Packages that begin with "javax" are extensions to
    Java (hence the "x").

    AWT was the first UI package in Java. Swing came
    later and was added as an extension.

    %aha, right. cheers

  • RELEVANCY SCORE 2.32

    DB:2.32:Jsf-Extensions With Java Studio Creator? d9


    Is it possible to use jsf-extensions with Java Studio Creator?
    Later I intend to deploy application in tomcat.

    I tried to use extensions by coping shale, logging and jsf jars files (all mentioned 4 jars) in lib directory of my project in JSC. But it fails to work as it looks for some classes (j2ee 5) which are most probably not there i.e java.lang.NoClassDefFoundError: javax/faces/application/StateManagerWrapper

    So just wondering, is it possible to use jsf in JSC and deploy application in tomcat later? If so, could you please suggest what I should do to make it work?

    Thanks.

  • RELEVANCY SCORE 2.32

    DB:2.32:Noclassdeffounderror When Deploying App With Custom Phaselistener 8k


    Hi all I'm using MyFaces and deploying to a standalone OC4J(10.1.2.0.2). I get the following error when executing the bindWebApp:

    Error: javax/faces/event/PhaseListener
    java.lang.NoClassDefFoundError: javax/faces/event/PhaseListener
    at com.evermind.server.rmi.RMIConnection.EXCEPTION_ORIGINATES_FROM_THE_REMOTE_SERVER(RMIConnection.java:1621)
    at com.evermind.server.rmi.RMIConnection.invokeMethod(RMIConnection.java:1572)
    at com.evermind.server.rmi.RemoteInvocationHandler.invoke(RemoteInvocationHandler.java:55)
    at com.evermind.server.rmi.RecoverableRemoteInvocationHandler.invoke(RecoverableRemoteInvocationHandler.java:22)
    at __Proxy0.bindWebApp(Unknown Source)
    at com.evermind.client.orion.BindWebAppCommand.execute(BindWebAppCommand.java:28)
    at com.evermind.client.orion.Oc4jAdminConsole.executeCommand(Oc4jAdminConsole.java:139)
    at com.evermind.client.orion.Oc4jAdminConsole.main(Oc4jAdminConsole.java:30)

    has anyone had this before?

    DB:2.32:Noclassdeffounderror When Deploying App With Custom Phaselistener 8k

    Hi all I'm using MyFaces and deploying to a standalone OC4J(10.1.2.0.2). I get the following error when executing the bindWebApp:

    Error: javax/faces/event/PhaseListener
    java.lang.NoClassDefFoundError: javax/faces/event/PhaseListener
    at com.evermind.server.rmi.RMIConnection.EXCEPTION_ORIGINATES_FROM_THE_REMOTE_SERVER(RMIConnection.java:1621)
    at com.evermind.server.rmi.RMIConnection.invokeMethod(RMIConnection.java:1572)
    at com.evermind.server.rmi.RemoteInvocationHandler.invoke(RemoteInvocationHandler.java:55)
    at com.evermind.server.rmi.RecoverableRemoteInvocationHandler.invoke(RecoverableRemoteInvocationHandler.java:22)
    at __Proxy0.bindWebApp(Unknown Source)
    at com.evermind.client.orion.BindWebAppCommand.execute(BindWebAppCommand.java:28)
    at com.evermind.client.orion.Oc4jAdminConsole.executeCommand(Oc4jAdminConsole.java:139)
    at com.evermind.client.orion.Oc4jAdminConsole.main(Oc4jAdminConsole.java:30)

    has anyone had this before?

  • RELEVANCY SCORE 2.31

    DB:2.31:Jdeveloper - 11g - Java.Lang.Noclassdeffounderror: Javax/Faces/Model/Select sd


    Get error in the following snippet in a Managed Bean: -

    ListSelectItem returnValues = new ArrayListSelectItem();
    returnValues.add(new SelectItem("Select One"));
    for (Iterator itList = list.iterator(); itList.hasNext();)
    {
    ABCVO abcVO= (ABCVO) itList.next(); ;
    returnValues.add(new SelectItem(abcVO.getDescription()));
    }

    Error: -

    com.sun.faces.application.ActionListenerImpl processAction
    SEVERE: java.lang.NoClassDefFoundError: javax/faces/model/SelectItem
    javax.faces.el.EvaluationException: java.lang.NoClassDefFoundError: javax/faces/model/SelectItem
    at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:102)

    I have checked - I have JSF 1.2 added in 'Libraries and Classpath' in Project properties.

    Please help.

    Thanks!

    DB:2.31:Jdeveloper - 11g - Java.Lang.Noclassdeffounderror: Javax/Faces/Model/Select sd

    After repeated efforts, I found one thing, which makes me scratch my head.

    The application is Java EE WebApplication with ViewController and Model. I had created mutual dependencies between View Controller and Model.

    On selecting Model, and removing dependency to View Controller, the problem seems to get resolved. So, in a nutshell - now I have one way dependency and that is View Controller to Model.

    I am new to JDev, and not very comfortable with this jargon. Can you please explain how dependency works and why it seems to work now.

    Thanks!

  • RELEVANCY SCORE 2.31

    DB:2.31:Java.Lang.Noclassdeffounderror: Javax/Servlet/Jsp/Jstl/Core/Config 88


    when i tried to execute a jsp file i'm getting these 2 exceptions , what is wrong with my program ,

    javax.servlet.ServletException: Servlet execution threw an exception
    java.lang.NoClassDefFoundError: javax/servlet/jsp/jstl/core/Config

    web.xm
    ----------
    ?xml version="1.0"?
    !DOCTYPE web-app PUBLIC
    "-//Sun Microsystems,Inc.//DTD Web Application 2.3//EN"
    "http://java.sun.com/dtd/web-app_2_3.dtd"

    web-app
    servlet
    servlet-nameFaces Servlet/servlet-name
    servlet-classjavax.faces.webapp.FacesServlet/servlet-class
    load-on-startup1/load-on-startup
    /servlet

    servlet-mapping
    servlet-nameFaces Servlet/servlet-name
    url-pattern*.faces/url-pattern
    /servlet-mapping

    welcome-file-list
    welcome-fileindex.html/welcome-file
    /welcome-file-list
    /web-app

    faces-config.xml
    ---------------------

    ?xml version="1.0"?
    !DOCTYPE faces-config PUBLIC
    "-//Sun Microsystems,Inc.//DTD JavaServer Faces Config 1.0//EN" "http://java.sun.com/dtd/web-facesconfig_1_0.dtd"

    faces-config
    navigation-rule
    from-view-id/index.jsp/from-view-id
    navigation-case
    from-outcomelogin/from-outcome
    to-view-id/welcome.jsp/to-view-id
    /navigation-case
    /navigation-rule

    managed-bean
    managed-bean-nameuser/managed-bean-name managed-bean-classcom.corejsf.UserBean/managed-bean-class
    managed-bean-scopesession/managed-bean-scope
    /managed-bean
    /faces-config

    index.html
    ---------------
    html
    %@taglib uri="http://java.sun.com/jsf/core"prefix="f"%
    %@taglib uri="http://java.sun.com/jsf/html"prefix="h"%
    f:view
    head
    titleA Simple JavaServer Faces Application/title
    /head
    body
    h:form
    h3Please enter your name and password./h3
    table
    tr
    td
    Name:
    /td
    td
    h:inputText value="#{user.name}"/
    /td
    /tr
    tr
    td
    Password:
    /td
    td
    h:inputSecret value="#{user.password}"/
    /td
    /tr
    /table

    p
    h:commandButton value="Login"action="login"/
    /p
    /h:form
    /body
    /f:view
    /html

    please help me
    peeths

    DB:2.31:Java.Lang.Noclassdeffounderror: Javax/Servlet/Jsp/Jstl/Core/Config 88

    This topic is ages old and someone resurrected it. Check the dates.

  • RELEVANCY SCORE 2.31

    DB:2.31:Access To Custom El Functions Within Faces-Config Managed-Property Init 1m


    I am initializing a managed-property value using a deferred EL expression, such as the "href" property here:

    managed-bean
    description
    Some backing bean
    /description
    managed-bean-nameMyBean/managed-bean-name
    managed-bean-class
    test.MyBeanClass
    /managed-bean-class
    managed-bean-scopesession/managed-bean-scope
    managed-property
    property-namehref/property-name
    property-classjava.net.URL/property-class
    value#{some-expr-here}/value
    /managed-property
    /managed-bean

    OK so far, but now I want to make use of a function from a custom tag library. If the expression was within a JSP or JSF page, I would just include the %@ taglib prefix="f" uri="/WEB-INF/functions.tld"% tag, or if I was using the XML syntax, then import the tag lib through the XMLNS method (eg xmlns:f="/WEB-INF/functions.tld").
    However, I tried the XML syntax in the faces-config.xml config file, and it doesn't do anything. When the expression is invoked, I end up with the exception:
    javax.servlet.ServletException: Expression uses functions, but no FunctionMapper was provided

    Is there some other way to configure a custom tag library (perhaps in the web.xml setup for the faces servlet?) so that it is available for evaluation of ELs within faces-config.xml?
    Or is this an "enhancement request" for the implementation?

    Thanks.

    DB:2.31:Access To Custom El Functions Within Faces-Config Managed-Property Init 1m

    I am initializing a managed-property value using a deferred EL expression, such as the "href" property here:

    managed-bean
    description
    Some backing bean
    /description
    managed-bean-nameMyBean/managed-bean-name
    managed-bean-class
    test.MyBeanClass
    /managed-bean-class
    managed-bean-scopesession/managed-bean-scope
    managed-property
    property-namehref/property-name
    property-classjava.net.URL/property-class
    value#{some-expr-here}/value
    /managed-property
    /managed-bean

    OK so far, but now I want to make use of a function from a custom tag library. If the expression was within a JSP or JSF page, I would just include the %@ taglib prefix="f" uri="/WEB-INF/functions.tld"% tag, or if I was using the XML syntax, then import the tag lib through the XMLNS method (eg xmlns:f="/WEB-INF/functions.tld").
    However, I tried the XML syntax in the faces-config.xml config file, and it doesn't do anything. When the expression is invoked, I end up with the exception:
    javax.servlet.ServletException: Expression uses functions, but no FunctionMapper was provided

    Is there some other way to configure a custom tag library (perhaps in the web.xml setup for the faces servlet?) so that it is available for evaluation of ELs within faces-config.xml?
    Or is this an "enhancement request" for the implementation?

    Thanks.

  • RELEVANCY SCORE 2.31

    DB:2.31:Using F# Library In C# Assignment To Type Question dx


    error at : test1 = logic.expr.NodeValue(A);
    Message : 'testF4.logic.expr.NodeValue' is a 'type', which is not valid in the given context
    in this example, goal is to construct Conj(A,Conj(Neg(B),C))
    logic_table[101] = true;
    logic_table[011] = true;

    Console.WriteLine();
    Boolean r = false;
    foreach (String k in logic_table.Keys)
    {
    r = false;
    logic_table.TryGetValue(k, out r);

    Console.WriteLine(k , r.ToString());

    for (int i = 0; i k.Length; i)
    {
    logic.expr test1;
    if (i == 0 k.Substring(i, 1) == 1)
    {
    test1 = logic.expr.NodeValue(A);
    }
    if (i == 0 k.Substring(i, 1) == 0)
    {
    test1 = logic.expr.NodeValue(logic.expr.Neg(logic.expr.NodeValue(A)));
    }
    }
    }

    type expr =
    | Prop of string
    | Conj of expr * expr
    | Disj of expr * expr
    | Impl of expr * expr
    | Neg of expr
    | Node1 of string * expr * expr
    | Node2 of string * expr
    | Node3 of string * Listexpr * Listexpr
    | Dummy of string * obj
    | NodeValue of string

  • RELEVANCY SCORE 2.31

    DB:2.31:Javax/Faces/Exception a9


    Hi:

    I have a visual JSF application that I deployed to a tomcat 6.0.
    I am getting this error
    java.lang.NoClassDefFoundError: javax/faces/FacesException
    I see this class in the libraries that are included in the project.
    Is there some other kind of problem?
    included is the log of tomcat:

    java.lang.NoClassDefFoundError: javax/faces/FacesException
    at com.sun.faces.application.WebappLifecycleListener.clinit(WebappLifecycleListener.java:67)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
    at java.lang.reflect.Constructor.newInstance(Unknown Source)
    at java.lang.Class.newInstance0(Unknown Source)
    at java.lang.Class.newInstance(Unknown Source)
    at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3787)
    at org.apache.catalina.core.StandardContext.start(StandardContext.java:4350)
    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
    at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:924)
    at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:887)
    at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)
    at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1215)
    at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:293)
    at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
    at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1337)
    at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1601)
    at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1610)
    at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1590)
    at java.lang.Thread.run(Unknown Source)
    Caused by: java.lang.ClassNotFoundException: javax.faces.FacesException
    at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1360)
    at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1206)
    at java.lang.ClassLoader.loadClassInternal(Unknown Source)I appreciate your help

    DB:2.31:Javax/Faces/Exception a9

    Another option is to try using GlassFish... it just works (no JSF jars needed in your app at all).

    https://glassfish.dev.java.net

    Ken Paulsen
    https://glassfish.dev.java.net

  • RELEVANCY SCORE 2.31

    DB:2.31:How To Handle Jsf Session Timeouts ? d1


    Hi All,

    I want to redirect to a specific ".jsp" file page when the session is timed out in JSF.

    I have tried to implement the same using PhaseListener

    import javax.faces.FacesException;
    import javax.faces.application.Application;
    import javax.faces.application.ViewHandler;
    import javax.faces.component.UIViewRoot;
    import javax.faces.context.ExternalContext;
    import javax.faces.context.FacesContext;
    import javax.faces.event.PhaseEvent;
    import javax.faces.event.PhaseId;
    import javax.faces.event.PhaseListener;
    import javax.servlet.http.HttpSession;

    public class SessionTimeoutPhaseListener implements PhaseListener {

    public void beforePhase(PhaseEvent event) {
    // Session detection code goes here
    System.out.println(event.getPhaseId());
    FacesContext facesCtx = event.getFacesContext();
    ExternalContext extCtx = facesCtx.getExternalContext();
    HttpSession session = (HttpSession) extCtx.getSession(false);

    boolean newSession = (session == null) || (session.isNew());
    boolean postback = !extCtx.getRequestParameterMap().isEmpty();
    boolean timedout = postback newSession;
    if (timedout) {
    Application app = facesCtx.getApplication();
    ViewHandler viewHandler = app.getViewHandler();
    UIViewRoot view = viewHandler.createView(
    facesCtx,
    "sample.jsp");
    facesCtx.setViewRoot(view);
    facesCtx.renderResponse();
    try {
    viewHandler.renderView(facesCtx, view);
    facesCtx.responseComplete();
    } catch(Throwable t) {
    throw new FacesException(
    "Session timed out", t);
    }
    }
    }

    public void afterPhase(PhaseEvent event) {
    // Do nothing
    }

    public PhaseId getPhaseId() {
    return PhaseId.ANY_PHASE;
    }
    } and I added the following lines in my faces-cofig.xml

    lifecycle
    phase-listener
    SessionTimeoutPhaseListener
    /phase-listener
    /lifecycleBut Its not working. Whenever session expires i am getting the following exception in my screen.

    javax.faces.application.ViewExpiredException: viewId:/welcome.jsf - View /welcome.jsf could not be restored.
    at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:312)
    at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
    at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:27)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:43)
    at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:247)Have i did anything wrongly in the above mentioned code? Is there any other simple way to handle this situation.

    Thanks in Advance,
    Antany

    DB:2.31:How To Handle Jsf Session Timeouts ? d1

    Thank you very much ferric4

    The below code works as i expected.

    public class TimeOutListener implements PhaseListener {

    public void afterPhase(PhaseEvent e) {
    // TODO Auto-generated method stub
    if(e.getPhaseId()== PhaseId.RESTORE_VIEW) {
    FacesContext facesContext = e.getFacesContext();
    HttpSession sessionx = (HttpSession)facesContext.getExternalContext().getSession(false);
    HttpServletRequest req = (HttpServletRequest) facesContext.getExternalContext().getRequest();

    SessionInfo sessionInfo = (SessionInfo) sessionx.getAttribute("si");

    if(sessionInfo == null){
    facesContext.getApplication().getNavigationHandler().handleNavigation(facesContext, "", "sessionExpired" );
    }
    }
    }

    public void beforePhase(PhaseEvent e) {
    // TODO Auto-generated method stub

    if(e.getPhaseId()== PhaseId.RESTORE_VIEW) {
    FacesContext facesContext = e.getFacesContext();
    HttpSession sessionx = (HttpSession)facesContext.getExternalContext().getSession(false);
    HttpServletRequest req = (HttpServletRequest) facesContext.getExternalContext().getRequest();

    SessionInfo sessionInfo = (SessionInfo) sessionx.getAttribute("si");

    if(sessionInfo == null){
    facesContext.getApplication().getNavigationHandler().handleNavigation(facesContext, "", "sessionExpired" );
    }
    }
    }

    public PhaseId getPhaseId() {
    // TODO Auto-generated method stub
    return PhaseId.RESTORE_VIEW;
    }

    }Thanks,
    Antany

  • RELEVANCY SCORE 2.31

    DB:2.31:Getexpressionfactory Error In Was 6.1 s9


    I am trying to run Seam 2.1.0 on a WAS 6.1.0.15 server. I have run into many classpath issues with the JSF implementation and other needed JARs, all which I have resolved so far. Now I am getting this error when trying to run the 'Helloworld' example from the book 'JBoss Seam, Simplicity and Power ....'.
    00000021 WebApp E Servlet Error-Faces Servlet: java.lang.NoSuchMethodError: javax/faces/application/Application.getExpressionFactory()Ljavax/el/ExpressionFactory;
    at org.jboss.seam.jsf.UnifiedELValueBinding.getValueExpression(UnifiedELValueBinding.java:69)
    at org.jboss.seam.jsf.UnifiedELValueBinding.getValue(UnifiedELValueBinding.java:46)
    at javax.faces.component.UIOutput.getValue(UIOutput.java:147)
    at com.sun.faces.renderkit.html_basic.HtmlBasicInputRenderer.getValue(HtmlBasicInputRenderer.java:84)
    at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.getCurrentValue(HtmlBasicRenderer.java:204)
    at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeEnd(HtmlBasicRenderer.java:171)
    at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:754)
    at javax.faces.webapp.UIComponentTag.encodeEnd(UIComponentTag.java:630)
    at javax.faces.webapp.UIComponentTag.doEndTag(UIComponentTag.java:553)
    at com.sun.faces.taglib.html_basic.InputTextTag.doEndTag(InputTextTag.java:670)
    at com.ibm._jsp._hello._jspx_meth_h_inputText_0(_hello.java:161)
    at com.ibm._jsp._hello._jspx_meth_h_form_0(_hello.java:202)
    at com.ibm._jsp._hello._jspx_meth_f_view_0(_hello.java:355)
    at com.ibm._jsp._hello._jspService(_hello.java:76)

    DB:2.31:Getexpressionfactory Error In Was 6.1 s9

    I was able to resolve this by re-arranging how the jars were referenced. In order to use the Sun JSF 1.2 RI on Websphere, you have to create special shared libraries as described at:
    IBM support on JSF 1.2
    I had already done that with the JSF RI, and I had to use the same library technique with the EL jars also.

  • RELEVANCY SCORE 2.31

    DB:2.31:Why Sum Is Not + But * j9


    type Expr =
    | Var
    | Num of int
    | Sum of Expr * Expr
    | Prod of Expr * Expr
    Sigma : Every day has new and fresh idea and then search whether exists,

    DB:2.31:Why Sum Is Not + But * j9

    Expr * Expr means atuple of Expressions not a productPetr

  • RELEVANCY SCORE 2.31

    DB:2.31:How To Debug These Errors... kf


    First Error :

    500 Internal Server Error

    java.lang.RuntimeException: java.security.PrivilegedActionException: javax.servlet.ServletException: java.lang.NoSuchMethodError: com.sun.faces.util.Util.getValueBinding(Ljava/lang/String;)Ljavax/faces/el/ValueBinding;
    at com.evermind[Oracle Containers for J2EE 10g (11.1.1.0.0) ].server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:199)
    at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:408)
    at org.apache.myfaces.trinidad.context.ExternalContextDecorator.dispatch(ExternalContextDecorator.java:44)
    at org.apache.myfaces.trinidad.context.ExternalContextDecorator.dispatch(ExternalContextDecorator.java:44)
    at org.apache.myfaces.trinidadinternal.context.FacesContextFactoryImpl$OverrideDispatch.dispatch(FacesContextFactoryImpl.java:267)
    at com.sun.faces.application.ViewHandlerImpl.executePageToBuildView(ViewHandlerImpl.java:439)
    at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:114)
    at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:178)
    at org.apache.myfaces.trinidadinternal.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:174)
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._renderResponse(LifecycleImpl.java:619)
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:241)
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:201)
    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)
    at com.evermind[Oracle Containers for J2EE 10g (11.1.1.0.0) ].server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
    at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:171)
    at com.evermind[Oracle Containers for J2EE 10g (11.1.1.0.0) ].server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
    at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:171)
    at com.evermind[Oracle Containers for J2EE 10g (11.1.1.0.0) ].server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:17)
    at oracle.adfinternal.view.faces.webapp.rich.SharedLibraryFilter.doFilter(SharedLibraryFilter.java:135)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:284)
    at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:69)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:284)
    at oracle.adfinternal.view.faces.activedata.ADSFilter.doFilter(ADSFilter.java:74)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:284)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._invokeDoFilter(TrinidadFilterImpl.java:208)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:165)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:138)
    at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
    at com.evermind[Oracle Containers for J2EE 10g (11.1.1.0.0) ].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:611)
    at com.evermind[Oracle Containers for J2EE 10g (11.1.1.0.0) ].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:362)
    at com.evermind[Oracle Containers for J2EE 10g (11.1.1.0.0) ].server.http.HttpRequestHandler.doDispatchRequest(HttpRequestHandler.java:915)
    at com.evermind[Oracle Containers for J2EE 10g (11.1.1.0.0) ].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:821)
    at com.evermind[Oracle Containers for J2EE 10g (11.1.1.0.0) ].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:626)
    at com.evermind[Oracle Containers for J2EE 10g (11.1.1.0.0) ].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:599)
    at com.evermind[Oracle Containers for J2EE 10g (11.1.1.0.0) ].server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:383)
    at com.evermind[Oracle Containers for J2EE 10g (11.1.1.0.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:161)
    at com.evermind[Oracle Containers for J2EE 10g (11.1.1.0.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:142)
    at oracle.oc4j.network.ServerSocketReadHandler$ClientRunnable.run(ServerSocketReadHandler.java:275)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
    at java.lang.Thread.run(Thread.java:595)
    Caused by: java.security.PrivilegedActionException: javax.servlet.ServletException: java.lang.NoSuchMethodError: com.sun.faces.util.Util.getValueBinding(Ljava/lang/String;)Ljavax/faces/el/ValueBinding;
    at java.security.AccessController.doPrivileged(Native Method)
    at oracle.oc4j.security.OC4JSecurity.internalDoPrivileged(OC4JSecurity.java:384)
    at oracle.oc4j.security.OC4JSecurity.doPrivileged(OC4JSecurity.java:400)
    at com.evermind[Oracle Containers for J2EE 10g (11.1.1.0.0) ].server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:190)
    ... 40 more
    Caused by: javax.servlet.ServletException: java.lang.NoSuchMethodError: com.sun.faces.util.Util.getValueBinding(Ljava/lang/String;)Ljavax/faces/el/ValueBinding;
    at com.evermind[Oracle Containers for J2EE 10g (11.1.1.0.0) ].server.http.EvermindPageContext.handlePageThrowable(EvermindPageContext.java:920)
    at com.evermind[Oracle Containers for J2EE 10g (11.1.1.0.0) ].server.http.EvermindPageContext.handlePageException(EvermindPageContext.java:822)
    at employeeSearchjspx._jspService(_employeeSearch_jspx.java:135)
    [employeeSearch.jspx]
    at com.orionserver[Oracle Containers for J2EE 10g (11.1.1.0.0) ].http.OrionHttpJspPage.service(OrionHttpJspPage.java:60)
    at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:487)
    at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:706)
    at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:627)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
    at com.evermind[Oracle Containers for J2EE 10g (11.1.1.0.0) ].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:703)
    at com.evermind[Oracle Containers for J2EE 10g (11.1.1.0.0) ].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:362)
    at com.evermind[Oracle Containers for J2EE 10g (11.1.1.0.0) ].server.http.ServletRequestDispatcher.unprivileged_forward(ServletRequestDispatcher.java:279)
    at com.evermind[Oracle Containers for J2EE 10g (11.1.1.0.0) ].server.http.ServletRequestDispatcher.access$100(ServletRequestDispatcher.java:39)
    at com.evermind[Oracle Containers for J2EE 10g (11.1.1.0.0) ].server.http.ServletRequestDispatcher$2.oc4jRun(ServletRequestDispatcher.java:185)
    at oracle.oc4j.security.OC4JPrivilegedAction.run(OC4JPrivilegedAction.java:41)
    ... 44 more
    Caused by: java.lang.NoSuchMethodError: com.sun.faces.util.Util.getValueBinding(Ljava/lang/String;)Ljavax/faces/el/ValueBinding;
    at com.sun.j2ee.blueprints.bpcatalog.ajax.components.AjaxTextFieldTag.setProperties(Unknown Source)
    at javax.faces.webapp.UIComponentTag.createComponent(UIComponentTag.java:209)
    at javax.faces.webapp.UIComponentClassicTagBase.createChild(UIComponentClassicTagBase.java:476)
    at javax.faces.webapp.UIComponentClassicTagBase.findComponent(UIComponentClassicTagBase.java:660)
    at javax.faces.webapp.UIComponentClassicTagBase.doStartTag(UIComponentClassicTagBase.java:1111)
    at employeeSearchjspx.__jsp_tag_ctru7_helper_11(_employeeSearch_jspx.java:485)
    [employeeSearch.jspx]
    at employeeSearchjspx.__jsp_tag_ctru6_helper_8(_employeeSearch_jspx.java:458)
    [employeeSearch.jspx]
    at employeeSearchjspx.__jsp_tag_ctru4_helper_5(_employeeSearch_jspx.java:399)
    [employeeSearch.jspx]
    at employeeSearchjspx.__jsp_tag_ctru3_helper_4(_employeeSearch_jspx.java:356)
    [employeeSearch.jspx]
    at employeeSearchjspx.__jsp_tag_ctru1_helper_2(_employeeSearch_jspx.java:271)
    [employeeSearch.jspx]
    at employeeSearchjspx.__jsp_tag_ctru0_helper_1(_employeeSearch_jspx.java:202)
    [employeeSearch.jspx]
    at employeeSearchjspx._jspService(_employeeSearch_jspx.java:124)
    [employeeSearch.jspx]
    ... 55 more

    Second Error
    Project: C:\JDeveloper\mywork\ClientDemos\AutoSuggestDuncan\ViewController\ViewController.jpr
    C:\JDeveloper\mywork\ClientDemos\AutoSuggestDuncan\ViewController\public_html\WEB-INF\lib\textfield(2).jar!\com\sun\j2ee\blueprints\bpcatalog\ajax\components\AjaxTextFieldTag.class
    (39,901): Component sL not expected type. Expected: AjaxTextField. Perhaps you're missing a tag?oyxy\[zy][{y^[|_[java/lang/Boolean}`[~a[java/lang/Classij javax.faces.context.FacesContextlj!javax.faces.component.UIComponentmjjava.lang.Objectjava/lang/Objectjavax/faces/FacesException com.sun.faces.INVALID_EXPRESSIONb[c[nj"javax.faces.event.ValueChangeEventd[java/lang/Integeroe[f[g[h[Bcom/sun/j2ee/blueprints/bpcatalog/ajax/components/AjaxTextFieldTag!javax/faces/webapp/UIComponentTagforName initCause,(Ljava/lang/Throwable;)Ljava/lang/Throwable;append,(Ljava/lang/String;)Ljava/lang/StringBuffer;toStringisValueReference(Ljava/lang/String;)Zcom/sun/faces/util/UtilgetValueBinding1(Ljava/lang/String;)Ljavax/faces/el/ValueBinding;setValueBinding2(Ljava/lang/String;Ljavax/faces/el/ValueBinding;)V javax/faces/context/FacesContextgetCurrentInstance$()Ljavax/faces/context/FacesContext;getApplication'()Ljavax/faces/application/Application;#javax/faces/application/ApplicationcreateConverter3(Ljava/lang/String;)Ljavax/faces/convert/Converter;"(Ljavax/faces/convert/Converter;)VbooleanValue()Z(Z)VcreateMethodBindingD(Ljava/lang/String;[Ljava/lang/Class;)Ljavax/faces/el/MethodBinding;!(Ljavax/faces/el/MethodBinding;)VgetExceptionMessageString9(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;(Ljava/lang/Object;)VintValue()I
    (39,952): Component sL not expected type. Expected: AjaxTextField. Perhaps you're missing a tag?oyxy\[zy][{y^[|_[java/lang/Boolean}`[~a[java/lang/Classij javax.faces.context.FacesContextlj!javax.faces.component.UIComponentmjjava.lang.Objectjava/lang/Objectjavax/faces/FacesException com.sun.faces.INVALID_EXPRESSIONb[c[nj"javax.faces.event.ValueChangeEventd[java/lang/Integeroe[f[g[h[Bcom/sun/j2ee/blueprints/bpcatalog/ajax/components/AjaxTextFieldTag!javax/faces/webapp/UIComponentTagforName initCause,(Ljava/lang/Throwable;)Ljava/lang/Throwable;append,(Ljava/lang/String;)Ljava/lang/StringBuffer;toStringisValueReference(Ljava/lang/String;)Zcom/sun/faces/util/UtilgetValueBinding1(Ljava/lang/String;)Ljavax/faces/el/ValueBinding;setValueBinding2(Ljava/lang/String;Ljavax/faces/el/ValueBinding;)V javax/faces/context/FacesContextgetCurrentInstance$()Ljavax/faces/context/FacesContext;getApplication'()Ljavax/faces/application/Application;#javax/faces/application/ApplicationcreateConverter3(Ljava/lang/String;)Ljavax/faces/convert/Converter;"(Ljavax/faces/convert/Converter;)VbooleanValue()Z(Z)VcreateMethodBindingD(Ljava/lang/String;[Ljava/lang/Class;)Ljavax/faces/el/MethodBinding;!(Ljavax/faces/el/MethodBinding;)VgetExceptionMessageString9(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;(Ljava/lang/Object;)VintValue()I
    (39,971): Component sL not expected type. Expected: AjaxTextField. Perhaps you're missing a tag?oyxy\[zy][{y^[|_[java/lang/Boolean}`[~a[java/lang/Classij javax.faces.context.FacesContextlj!javax.faces.component.UIComponentmjjava.lang.Objectjava/lang/Objectjavax/faces/FacesException com.sun.faces.INVALID_EXPRESSIONb[c[nj"javax.faces.event.ValueChangeEventd[java/lang/Integeroe[f[g[h[Bcom/sun/j2ee/blueprints/bpcatalog/ajax/components/AjaxTextFieldTag!javax/faces/webapp/UIComponentTagforName initCause,(Ljava/lang/Throwable;)Ljava/lang/Throwable;append,(Ljava/lang/String;)Ljava/lang/StringBuffer;toStringisValueReference(Ljava/lang/String;)Zcom/sun/faces/util/UtilgetValueBinding1(Ljava/lang/String;)Ljavax/faces/el/ValueBinding;setValueBinding2(Ljava/lang/String;Ljavax/faces/el/ValueBinding;)V javax/faces/context/FacesContextgetCurrentInstance$()Ljavax/faces/context/FacesContext;getApplication'()Ljavax/faces/application/Application;#javax/faces/application/ApplicationcreateConverter3(Ljava/lang/String;)Ljavax/faces/convert/Converter;"(Ljavax/faces/convert/Converter;)VbooleanValue()Z(Z)VcreateMethodBindingD(Ljava/lang/String;[Ljava/lang/Class;)Ljavax/faces/el/MethodBinding;!(Ljavax/faces/el/MethodBinding;)VgetExceptionMessageString9(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;(Ljava/lang/Object;)VintValue()I
    (39,1021): Component sL not expected type. Expected: AjaxTextField. Perhaps you're missing a tag?oyxy\[zy][{y^[|_[java/lang/Boolean}`[~a[java/lang/Classij javax.faces.context.FacesContextlj!javax.faces.component.UIComponentmjjava.lang.Objectjava/lang/Objectjavax/faces/FacesException com.sun.faces.INVALID_EXPRESSIONb[c[nj"javax.faces.event.ValueChangeEventd[java/lang/Integeroe[f[g[h[Bcom/sun/j2ee/blueprints/bpcatalog/ajax/components/AjaxTextFieldTag!javax/faces/webapp/UIComponentTagforName initCause,(Ljava/lang/Throwable;)Ljava/lang/Throwable;append,(Ljava/lang/String;)Ljava/lang/StringBuffer;toStringisValueReference(Ljava/lang/String;)Zcom/sun/faces/util/UtilgetValueBinding1(Ljava/lang/String;)Ljavax/faces/el/ValueBinding;setValueBinding2(Ljava/lang/String;Ljavax/faces/el/ValueBinding;)V javax/faces/context/FacesContextgetCurrentInstance$()Ljavax/faces/context/FacesContext;getApplication'()Ljavax/faces/application/Application;#javax/faces/application/ApplicationcreateConverter3(Ljava/lang/String;)Ljavax/faces/convert/Converter;"(Ljavax/faces/convert/Converter;)VbooleanValue()Z(Z)VcreateMethodBindingD(Ljava/lang/String;[Ljava/lang/Class;)Ljavax/faces/el/MethodBinding;!(Ljavax/faces/el/MethodBinding;)VgetExceptionMessageString9(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;(Ljava/lang/Object;)VintValue()I

    DB:2.31:How To Debug These Errors... kf

    Hi Chris

    I actually got these errors when i was trying to build an application for autosuggest as put up by Duncan Mills on
    http://www.oracle.com/technology/products/jdev/tips/mills/AjaxAutoSuggest/AjaxAutoSuggest.html

    Can you please help me in debugging those errors still not able to remove that error

  • RELEVANCY SCORE 2.31

    DB:2.31:Throwing Exception From Managed Bean Setter da


    Is it possible to throw an exception in a managed bean setter method? The managed bean invokes the setter method when the managed bean is created based on the faces config xml. The setter method value comes from a parameter in the URL. The exception extends the FacesException but it appears that since the JSF lifecycle has already started although the exception appears to be thrown the original page is still trying to be displayed and it fails on the getter method of the first bean variable referenced in the page.

    I can detect the condition in the setter for when I want to throw the exception and instead issue a redirect to an error page. That seems to be only way to get this to work. I could invoke a servlet, filter or listener first but this is a check I want to have invoked at the start of every JSF lifecycle and other than the initial request I will not have access to the parameter I need to check since it will no longer be a parameter of the Url.

    The bean is request scope and session scope is not an option.

    So, is there anything fundamentally wrong with performing the check and redirect in the necessary setter method?

    Thanks

    DB:2.31:Throwing Exception From Managed Bean Setter da

    Is it possible to throw an exception in a managed bean setter method? The managed bean invokes the setter method when the managed bean is created based on the faces config xml. The setter method value comes from a parameter in the URL. The exception extends the FacesException but it appears that since the JSF lifecycle has already started although the exception appears to be thrown the original page is still trying to be displayed and it fails on the getter method of the first bean variable referenced in the page.

    I can detect the condition in the setter for when I want to throw the exception and instead issue a redirect to an error page. That seems to be only way to get this to work. I could invoke a servlet, filter or listener first but this is a check I want to have invoked at the start of every JSF lifecycle and other than the initial request I will not have access to the parameter I need to check since it will no longer be a parameter of the Url.

    The bean is request scope and session scope is not an option.

    So, is there anything fundamentally wrong with performing the check and redirect in the necessary setter method?

    Thanks

  • RELEVANCY SCORE 2.31

    DB:2.31:Java.Lang.Noclassdeffounderror When Activating New Deployment 9d


    After sucessfully installing a new deployment through the WL10 console, I get the error below when I activate changes. But if I press activate a second time it works. Then when I try to start the app, I keep getting the same error?

    BEA-149205 Failed to initialize the application 'xxxxxxxxx' due to error java.lang.NoClassDefFoundError: javax/faces/webapp/UIComponentTag.
    java.lang.NoClassDefFoundError: javax/faces/webapp/UIComponentTag
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
    at weblogic.utils.classloaders.GenericClassLoader.defineClass(GenericClassLoader.java:338)
    at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:291)
    at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:259)
    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)

    DB:2.31:Java.Lang.Noclassdeffounderror When Activating New Deployment 9d

    The second activate changes does nothing since you haven't changed
    anything. That is the reason that there is not error on the second time.

    It sounds like your app needs to include the jar for the javax faces in
    your app or put it on the system classpath.

    user boozer wrote:
    After sucessfully installing a new deployment through the WL10 console, I get the error below when I activate changes. But if I press activate a second time it works. Then when I try to start the app, I keep getting the same error?

    BEA-149205 Failed to initialize the application 'xxxxxxxxx' due to error java.lang.NoClassDefFoundError: javax/faces/webapp/UIComponentTag.
    java.lang.NoClassDefFoundError: javax/faces/webapp/UIComponentTag
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
    at weblogic.utils.classloaders.GenericClassLoader.defineClass(GenericClassLoader.java:338)
    at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:291)
    at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:259)
    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)

  • RELEVANCY SCORE 2.31

    DB:2.31:Error Deploying Richfaces 3.3.3 Application In Jboss 6 fk



    Hi

    I have a java application that was targeted for a jboss 4.2 server; but now i need to deploy it in a jboss 6 server

    But everytime i try to do this, i get this error

    00:18:45,604 ERROR [[/davinci]] Exception sending context initialized event to listener instance of class com.sun.faces.config.ConfigureListener: java.lang.LinkageError: loader constraint violation: when resolving overridden method "org.ajax4jsf.renderkit.ChameleonRenderKitFactory.getRenderKit(Ljavax/faces/context/FacesContext;Ljava/lang/String;)Ljavax/faces/render/RenderKit;" the class loader (instance of org/jboss/classloader/spi/base/BaseClassLoader) of the current class, org/ajax4jsf/renderkit/ChameleonRenderKitFactory, and its superclass loader (instance of org/jboss/classloader/spi/base/BaseClassLoader), have different Class objects for the type javax/faces/context/FacesContext used in the signature

    what can be the problem ??

    DB:2.31:Error Deploying Richfaces 3.3.3 Application In Jboss 6 fk


    Hi

    I have a java application that was targeted for a jboss 4.2 server; but now i need to deploy it in a jboss 6 server

    But everytime i try to do this, i get this error

    00:18:45,604 ERROR [[/davinci]] Exception sending context initialized event to listener instance of class com.sun.faces.config.ConfigureListener: java.lang.LinkageError: loader constraint violation: when resolving overridden method "org.ajax4jsf.renderkit.ChameleonRenderKitFactory.getRenderKit(Ljavax/faces/context/FacesContext;Ljava/lang/String;)Ljavax/faces/render/RenderKit;" the class loader (instance of org/jboss/classloader/spi/base/BaseClassLoader) of the current class, org/ajax4jsf/renderkit/ChameleonRenderKitFactory, and its superclass loader (instance of org/jboss/classloader/spi/base/BaseClassLoader), have different Class objects for the type javax/faces/context/FacesContext used in the signature

    what can be the problem ??

  • RELEVANCY SCORE 2.31

    DB:2.31:Two Jsf Based Portlets Fail To Display fz


    I have two portlets which are JSF based has their own web.xml, faces-config.xml and their own coppies of lib/*.jars but when deployed and put in a single display channel only one succeeds to display and moreover the one in portal which is above other works the other one throws a FacesException.

    Any thoughts?

    DB:2.31:Two Jsf Based Portlets Fail To Display fz

    Hi,

    I'm also getting the following error:

    javax.servlet.jsp.JspException
    at com.sun.faces.taglib.jsf_core.ViewTag.doStartTag(ViewTag.java:117)

    Which was the root of your problem. Did you find out what was the cause?

    TIA,

    Brian

  • RELEVANCY SCORE 2.31

    DB:2.31:Re: Facescontext Issue What Is Wrong 88


    hi staind_art

    Nice, you found the problem.

    I still don't understand how "FacesContext.getApplication()" can compile, because it is not a static method.
    http://java.sun.com/javaee/javaserverfaces/1.1_01/docs/api/javax/faces/context/FacesContext.html#getApplication()
    If I try that in JDeveloper, it shows this red underline and a tooltip message "'getApplication()' in 'FacesContext' is not static".

    regards
    Jan

    DB:2.31:Re: Facescontext Issue What Is Wrong 88

    thx i was hoping for another ressource because thats what i was already looking at and the exact same chapter

    and thx for the clarification and you time

  • RELEVANCY SCORE 2.31

    DB:2.31:Not Able To Access Java Bean On The Faces Jsp 3f


    I am returning a Java Bean from my controller class which I need to display on my Faces JSP.

    I error I get is
    Error 500: ServletException in '/template/main.jsp': ServletException in '/body/memberSearchResultsBody.jsp': javax/servlet/jsp/jstl/sql/Result. The stack trace is at the end of this message

    Environment : WSAD 5.1.2
    Faces Implementation: Apache MyFaces 1.0.9

    The following is the code snippet which is in the Controller class to set the bean on the facesContext

    ValueBinding responseBinding = facesContext.getApplication().createValueBinding("#{MemberResultSet}");
    responseBinding.setValue(facesContext,memberResultSet);The following is code which is on the Faces JSP

    h:dataTable width="100%" cellspacing="1" headerClass="tableColumnHeading" value="#{MemberResultSet}" var="searchResult"
    h:column
    f:facet name="header"
    h:outputText value=" " /
    /f:facet
    /h:column
    h:column
    f:facet name="header"
    h:outputLink value="#" styleClass="hyperLink"
    h:outputText value="Member ID" /
    /h:outputLink
    /f:facet
    h:outputText value="#{searchResult._memberID}" /
    /h:column
    /h:datatableThe following is the faces-config.xml
    managed-bean
    managed-bean-nameMemberResultSet/managed-bean-name
    managed-bean-classcom.aetna.webMEA.castorbeans.MemberResultSet/managed-bean-class
    managed-bean-scopesession/managed-bean-scope
    /managed-beanQuestions:
    1. Is this the correct way to access the bean in the datatable
    2. If someone has come across this problem please let me know.

    [6/3/05 16:40:05:241 EDT] 4a29a6d WebGroup E SRVE0026E: [Servlet Error]-[ServletException in #39;/template/main.jsp#39;: ServletException in #39;/body/memberSearchResultsBody.jsp#39;: javax/servlet/jsp/jstl/sql/Result]: javax.faces.FacesException: ServletException in '/template/main.jsp': ServletException in '/body/memberSearchResultsBody.jsp': javax/servlet/jsp/jstl/sql/Result
    at org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:411)
    at org.apache.myfaces.application.jsp.JspTilesViewHandlerImpl.dispatch(JspTilesViewHandlerImpl.java:220)
    at org.apache.myfaces.application.jsp.JspTilesViewHandlerImpl.renderView(JspTilesViewHandlerImpl.java:206)
    at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:300)
    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:110)
    at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110)
    at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174)

    DB:2.31:Not Able To Access Java Bean On The Faces Jsp 3f

    Can let me know if there is an answer to the problem below

  • RELEVANCY SCORE 2.31

    DB:2.31:Invoke Method With Parameters -≫ Javax.El.Methodnotfoundexception m8


    Hi, im gettin problems calling a parametrized model method

    The model class has two test methods:
    public class POJOParticipante{
    ...

    public java.lang.String test1(){
    return "this is test1";
    }

    public java.lang.String test2(java.lang.String param){
    return "this is test2";
    }
    ...
    }I bind the methods in the main.jspx page:
    pageDefinition id="mainPageDef" ....
    ...
    methodAction id="test1" InstanceName="POJOParticipante.dataProvider"
    DataControl="POJOParticipante" RequiresUpdateModel="true"
    Action="invokeMethod" MethodName="test1"
    IsViewObjectMethod="false"
    ReturnName="data.POJOParticipante.methodResults.test1_POJOParticipante_dataProvider_test1_result"/
    methodAction id="test2" InstanceName="POJOParticipante.dataProvider"
    DataControl="POJOParticipante" RequiresUpdateModel="true"
    Action="invokeMethod" MethodName="test2"
    IsViewObjectMethod="false"
    ReturnName="data.POJOParticipante.methodResults.test2_POJOParticipante_dataProvider_test2_result"
    NamedData NDName="param" NDType="java.lang.String"/
    ...
    /pageDefinitionThe main.jspx page has a button. That button launch an action listener event captured in a pageFlow Bean called PageBuscadorBean.
    That is de listener code:

    public void doSearchAction(ActionEvent actionEvent) {
    System.out.println(ADFUtils.invokeMethod("#{bindings.test1.execute}"));
    System.out.println(ADFUtils.invokeMethod("#{bindings.test2.execute}", String.class, "First Param"));
    }The helper class ADFUtils method look like this:
    public class ADFUtils {
    ...
    public static Object invokeMethod(String expr, Class[] paramTypes, Object[] params) {
    FacesContext fc = FacesContext.getCurrentInstance();
    ELContext elc = fc.getELContext();
    ExpressionFactory ef = fc.getApplication().getExpressionFactory();
    MethodExpression me = ef.createMethodExpression(elc, expr, Object.class, paramTypes);
    return me.invoke(elc, params);
    }

    public static Object invokeMethod(String expr, Class paramType, Object param) {
    return invokeMethod(expr, new Class[] { paramType }, new Object[] { param });
    }

    public static Object invokeMethod(String expr) {
    return invokeMethod(expr, new Class[0], new Object[0]);
    }
    ...
    }When i try de button, the output tell me that the test1 invocation works fine, but test2 invocation causes a MethodNotFoundException.
    Can anyone tell me what is wrong?. Thanks.

    this is the output:

    this is test1
    *LifecycleImpl _handleException ADF_FACES-60098:El ciclo de vida de Faces recibe excepciones no tratadas en la fase INVOKE_APPLICATION 5*
    javax.faces.el.EvaluationException: javax.el.MethodNotFoundException: Method not found: test2.execute(java.lang.String)

    More info:
    JDeveloper Studio Edition Version 11.1.1.5.0
    ADF Business Components 11.1.1.60.13

    Edited by: David on 30-dic-2011 9:33

    DB:2.31:Invoke Method With Parameters -≫ Javax.El.Methodnotfoundexception m8

    Hi.
    if you have the method published in your DataControl, you can use OpertaionBinding

    OperationBinding operation = bindings.getOperationBinding("test2");
    operation.getParamsMap().put("param", parameterValue);
    operation.execute();

  • RELEVANCY SCORE 2.30

    DB:2.30:Serious Classloader Problems sc



    Our JBoss instance has several JSF web applications with their own JSF implementations, so we had to remove the jars in jbossweb-tomcat55.sar\jsf-libs so they wouldn't conflict.So now I want to experiment with Seam, but when I try to deploy the 1.2.1.GA examples it starts puking about not having the myfaces classes:java.lang.ClassNotFoundException: org.apache.myfaces.webapp.StartupServletContextListenerThe problem is that adding those myfaces jars to the jboss-seam-booking war's WEB-INF/lib directory just causes other exceptions like:java.lang.NoClassDefFoundError: javax/faces/context/FacesContextSo I guess my question is this: how do I get this to work? Where should I put the faces jars?Any help would be much appreciated.

    DB:2.30:Serious Classloader Problems sc


    "thejavafreak" wrote:What JBoss version are you using? Try using JBoss 4.0.5 and don't add myfaces library in WEB-INF/lib.I'm using 4.0.5GA. Like I said, we had to remove the myfaces libraries from jbossweb-tomcat55.sar\jsf-libs because they conflicted with the JSF libraries used by other web applications we already have deployed.

  • RELEVANCY SCORE 2.30

    DB:2.30:Problem In Using Tomahawk 1.1.3 Jar With Jsf-Api.Jar &Amp; Jsf-Impl.Jar 1a


    Hi All,
    i am facing the problem while using t:panelTabbedPane in jsp.APplication has jsf-api.jar and jsf-impl.jar and Tomahawk 1.1.3 jar files in lib folder. This is a Portal Application.While deplyoing on portal server, i am getting following exception

    Nested Exception is java.lang.NoClassDefFoundError: javax/servlet/jsp/el/ELException
    at org.apache.myfaces.shared_tomahawk.config.MyfacesConfig.clinit(MyfacesConfig.java:80).

    if any faces problem previously, please help me out in debugging this issue

    DB:2.30:Problem In Using Tomahawk 1.1.3 Jar With Jsf-Api.Jar &Amp; Jsf-Impl.Jar 1a

    Please don't resurrect old topics. Start a new topic for each stand alone question. If necessary put links to the topics you found with search/google.

    Back to the actual problem:java.lang.NoClassDefFoundError: javax/servlet/jsp/el/ELException The given class is missing in the classpath during runtime. Add that class, or at least the JAR file with that class, to the classpath of the runtime environment, then you're fine.

  • RELEVANCY SCORE 2.30

    DB:2.30:Configurationexception On Deploying (Linux Only) 3x


    Hello Everyone,

    when I run my web app on my Win7 + Tomcat 6.0.32 + JDK 1.6.0_18 + Mojarra 2.0.6, everything is OK. When the final WAR is deployed into Java hosting (Linux + tomcat 6.0.20 + JDK 1.6.0_22), I am getting the following errors
    INFO: Undeploying context [/dyschart]
    25.7.2011 14:08:40 org.apache.catalina.startup.HostConfig deployWAR
    INFO: Deploying web application archive dyschart.war
    25.7.2011 14:08:41 com.sun.faces.config.ConfigureListener contextInitialized
    INFO: Initializing Mojarra 2.0.4 (FCS b09) for context '/dyschart'
    25.7.2011 14:08:42 com.sun.faces.config.ConfigManager initialize
    INFO: Unsanitized stacktrace from failed start...
    com.sun.faces.config.ConfigurationException:
    Source Document: jar:file:/users/system/tomcat_6/lib/struts-faces-1.3.8.jar!/META-INF/faces-config.xml
    Cause: Class 'org.apache.struts.faces.application.ActionListenerImpl' is missing a runtime dependency: java.lang.NoClassDefFoundError: javax/faces/event/ActionListener
    at com.sun.faces.config.processor.AbstractConfigProcessor.createInstance(AbstractConfigProcessor.java:279)There is no struts-faces jar in my Windows tomcat instance so it is hard to me to debug it (to reproduce this problem). There is a shared tomcat at this hosting so I cannot test removing this jar (I think it causes some kind of conflicts - that javax/faces/event/ActionListener is included in jsf-api.jar so I don't know why these complaints appear...).

    Has anybody any idea how to solve this?

    Regards,
    Jan

    DB:2.30:Configurationexception On Deploying (Linux Only) 3x

    Finally my account was migrated to the Tomcat 7 without any additional libraries and it works like a charm. So I have to agree that these additional libraries added there as 'added value' turned out to be pain nowadays. I hope it is good lesson for my host company that this approach is a highway to hell.

  • RELEVANCY SCORE 2.30

    DB:2.30:Porting Servlets To Portlets 3x


    Hi,

    I want to port a servlet application to a portlet application. In particular, I want to port this method, which works with Servlets so that it works with Portlets:

    public void jasperReport(String name, String type, ResultSet data, Map params) {

    // Look up the compiled report design resource
    ExternalContext econtext = getExternalContext();
    InputStream stream = econtext.getResourceAsStream(PREFIX + name + SUFFIX);

    // make sure cursor is in front of the first record
    try {
    data.beforeFirst();
    } catch (Exception e) {
    throw new FacesException(e);
    }

    // Fill the requested report with the specified data
    JRResultSetDataSource ds = new JRResultSetDataSource(data);
    JasperPrint jasperPrint = null;
    try {
    jasperPrint = JasperFillManager.fillReport(stream, params, ds);
    } catch (RuntimeException e) {
    throw e;
    } catch (Exception e) {
    throw new FacesException(e);
    } finally {
    try {
    stream.close();
    } catch (IOException e) {
    ;
    }
    }

    // Configure the exporter to be used, along with the custom
    // parameters specific to the exporter type
    JRExporter exporter = null;
    HttpServletResponse response = (HttpServletResponse)
    econtext.getResponse();
    FacesContext fcontext = FacesContext.getCurrentInstance();
    try {
    response.setContentType(type);
    if ("application/pdf".equals(type)) {
    exporter = new JRPdfExporter();
    exporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);
    exporter.setParameter(JRExporterParameter.OUTPUT_STREAM,
    response.getOutputStream());
    } else if ("text/html".equals(type)) {
    exporter = new JRHtmlExporter();
    exporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);
    exporter.setParameter(JRExporterParameter.OUTPUT_WRITER,
    response.getWriter());
    // Make images available for the HTML output
    HttpServletRequest request =
    (HttpServletRequest)
    fcontext.getExternalContext().getRequest();
    request.getSession().setAttribute(
    ImageServlet.DEFAULT_JASPER_PRINT_SESSION_ATTRIBUTE,
    jasperPrint);
    exporter.setParameter(
    JRHtmlExporterParameter.IMAGES_MAP, new HashMap());
    // Requires mapping /image to the imageServlet in the web.xml
    // This servlet serves up the px images for spacing
    exporter.setParameter(JRHtmlExporterParameter.IMAGES_URI, "image?image=");
    }
    } catch (RuntimeException e) {
    throw e;
    } catch (Exception e) {
    throw new FacesException(e);
    }

    // Enough with the preliminaries ... export the report already
    try {
    exporter.exportReport();
    } catch (RuntimeException e) {
    throw e;
    } catch (Exception e) {
    throw new FacesException(e);
    }

    // Tell JavaServer Faces that no output is required
    fcontext.responseComplete();

    }

    Thanks,

    Marc

    Message was edited by:
    marc_nikko

    DB:2.30:Porting Servlets To Portlets 3x

    so go ported! Please don't expect people to do work for you here.

    If you have problem describe it. If you need where to start google portlet, and if you are still lost on where to begin, be kind and ask "where do I start" here.

  • RELEVANCY SCORE 2.29

    DB:2.29:Adf Faces &Amp; Bc 10.1.3.4: How To Pass Values Between Adf Faces &Amp; Applet fk


    Hi all,

    I have a applet that is embedded within a .jsp file. The applet is launched in its own window from a commandbutton component. Is there a way to send values from a adf faces page into the applet?

    I tried using a setActionListener and set a value on the process scope, but recieved an exception within the applet on this line:

    FacesContext fc = FacesContext.getCurrentInstance(); // java.lang.NoClassDefFoundError: javax/faces/context/FacesContext exception occurs here.
    ValueBinding vb = fc.getApplication().createValueBinding("#{processScope.mrn}");

    I dont think this is the proper way to pass values between an adf faces app and applet. Does anyone have experience with this issue? any pointers would be appreciated.

    thanks,
    Wse

    DB:2.29:Adf Faces &Amp; Bc 10.1.3.4: How To Pass Values Between Adf Faces &Amp; Applet fk

    Hi Wes Fang,
    I am also trying to display an applet inside a popup. But I have problem with it.
    Previously, If displaying the applet inside browser, the codebase attribute of applet tag is binded to a backing bean 's variable which return the context path of application.
    When I put the same applet tag in the popup, it seems that the managed bean not created and the codebase value is not initialized. Thus, applet class is not found.
    How can you specify the codebase in your case?
    Thanks very much
    Regards
    K.

  • RELEVANCY SCORE 2.28

    DB:2.28:Macro Problem With Naming Convention x8



    I need to reference a growing list of charts to hide or display various expressions within those charts. Most of the expressions reference each other in some way, so I cannot proceed by simply changing the expression as needed. Most of them need to exist for the other expressions on the chart to work properly. I have tried repeatedly to make an array to simply hold the chart name (such as CH161) and then insert it in the proper spot, but I can't seem to get the naming convention correct and I always get an error of some sort. Can someone show me how to do this properly so I can use a single list of chart names and only have to add the chart name to a list rather than add a whole new section of code for each chart each time I have to add a new chart? I would appreciate it tremendously.

    SUB ShowRecBuyset chart = ActiveDocument.GetSheetObject("CH161")set p = chart.GetPropertiesset expr = p.Expressions.Item(0).Item(0).Data.ExpressionVisualexpr.ColWidth = 0chart.SetProperties pset expr = p.Expressions.Item(1).Item(0).Data.ExpressionVisualexpr.ColWidth = 0chart.SetProperties pset expr = p.Expressions.Item(2).Item(0).Data.ExpressionVisualexpr.ColWidth = 0chart.SetProperties pset expr = p.Expressions.Item(3).Item(0).Data.ExpressionVisualexpr.ColWidth = 170chart.SetProperties pset expr = p.Expressions.Item(4).Item(0).Data.ExpressionVisualexpr.ColWidth = 0chart.SetProperties pset expr = p.Expressions.Item(5).Item(0).Data.ExpressionVisualexpr.ColWidth = 0chart.SetProperties pset chart = ActiveDocument.GetSheetObject("CH160")set p = chart.GetPropertiesset expr = p.Expressions.Item(0).Item(0).Data.ExpressionVisualexpr.ColWidth = 0chart.SetProperties pset expr = p.Expressions.Item(1).Item(0).Data.ExpressionVisualexpr.ColWidth = 0chart.SetProperties pset expr = p.Expressions.Item(2).Item(0).Data.ExpressionVisualexpr.ColWidth = 0chart.SetProperties pset expr = p.Expressions.Item(3).Item(0).Data.ExpressionVisualexpr.ColWidth = 170chart.SetProperties pset expr = p.Expressions.Item(4).Item(0).Data.ExpressionVisualexpr.ColWidth = 0chart.SetProperties pset expr = p.Expressions.Item(5).Item(0).Data.ExpressionVisualexpr.ColWidth = 0chart.SetProperties pset chart = ActiveDocument.GetSheetObject("CH162")set p = chart.GetPropertiesset expr = p.Expressions.Item(0).Item(0).Data.ExpressionVisualexpr.ColWidth = 0chart.SetProperties pset expr = p.Expressions.Item(1).Item(0).Data.ExpressionVisualexpr.ColWidth = 0chart.SetProperties pset expr = p.Expressions.Item(2).Item(0).Data.ExpressionVisualexpr.ColWidth = 0chart.SetProperties pset expr = p.Expressions.Item(3).Item(0).Data.ExpressionVisualexpr.ColWidth = 170chart.SetProperties pset expr = p.Expressions.Item(4).Item(0).Data.ExpressionVisualexpr.ColWidth = 0chart.SetProperties pset expr = p.Expressions.Item(5).Item(0).Data.ExpressionVisualexpr.ColWidth = 0chart.SetProperties pset chart = ActiveDocument.GetSheetObject("CH167")set p = chart.GetPropertiesset expr = p.Expressions.Item(0).Item(0).Data.ExpressionVisualexpr.ColWidth = 0chart.SetProperties pset expr = p.Expressions.Item(1).Item(0).Data.ExpressionVisualexpr.ColWidth = 0chart.SetProperties pset expr = p.Expressions.Item(2).Item(0).Data.ExpressionVisualexpr.ColWidth = 0chart.SetProperties pset expr = p.Expressions.Item(3).Item(0).Data.ExpressionVisualexpr.ColWidth = 170chart.SetProperties pset expr = p.Expressions.Item(4).Item(0).Data.ExpressionVisualexpr.ColWidth = 0chart.SetProperties pset expr = p.Expressions.Item(5).Item(0).Data.ExpressionVisualexpr.ColWidth = 0chart.SetProperties pset chart = ActiveDocument.GetSheetObject("CH168")set p = chart.GetPropertiesset expr = p.Expressions.Item(0).Item(0).Data.ExpressionVisualexpr.ColWidth = 0chart.SetProperties pset expr = p.Expressions.Item(1).Item(0).Data.ExpressionVisualexpr.ColWidth = 0chart.SetProperties pset expr = p.Expressions.Item(2).Item(0).Data.ExpressionVisualexpr.ColWidth = 0chart.SetProperties pset expr = p.Expressions.Item(3).Item(0).Data.ExpressionVisualexpr.ColWidth = 170chart.SetProperties pset expr = p.Expressions.Item(4).Item(0).Data.ExpressionVisualexpr.ColWidth = 0chart.SetProperties pset expr = p.Expressions.Item(5).Item(0).Data.ExpressionVisualexpr.ColWidth = 0chart.SetProperties pset chart = ActiveDocument.GetSheetObject("CH171")set p = chart.GetPropertiesset expr = p.Expressions.Item(0).Item(0).Data.ExpressionVisualexpr.ColWidth = 0chart.SetProperties pset expr = p.Expressions.Item(1).Item(0).Data.ExpressionVisualexpr.ColWidth = 0chart.SetProperties pset expr = p.Expressions.Item(2).Item(0).Data.ExpressionVisualexpr.ColWidth = 0chart.SetProperties pset expr = p.Expressions.Item(3).Item(0).Data.ExpressionVisualexpr.ColWidth = 170chart.SetProperties pset expr = p.Expressions.Item(4).Item(0).Data.ExpressionVisualexpr.ColWidth = 0chart.SetProperties pset expr = p.Expressions.Item(5).Item(0).Data.ExpressionVisualexpr.ColWidth = 0chart.SetProperties pset chart = ActiveDocument.GetSheetObject("CH179")set p = chart.GetPropertiesset expr = p.Expressions.Item(0).Item(0).Data.ExpressionVisualexpr.ColWidth = 0chart.SetProperties pset expr = p.Expressions.Item(1).Item(0).Data.ExpressionVisualexpr.ColWidth = 0chart.SetProperties pset expr = p.Expressions.Item(2).Item(0).Data.ExpressionVisualexpr.ColWidth = 0chart.SetProperties pset expr = p.Expressions.Item(3).Item(0).Data.ExpressionVisualexpr.ColWidth = 170chart.SetProperties pset expr = p.Expressions.Item(4).Item(0).Data.ExpressionVisualexpr.ColWidth = 0chart.SetProperties pset expr = p.Expressions.Item(5).Item(0).Data.ExpressionVisualexpr.ColWidth = 0chart.SetProperties pset chart = ActiveDocument.GetSheetObject("CH173")set p = chart.GetPropertiesset expr = p.Expressions.Item(0).Item(0).Data.ExpressionVisualexpr.ColWidth = 0chart.SetProperties pset expr = p.Expressions.Item(1).Item(0).Data.ExpressionVisualexpr.ColWidth = 0chart.SetProperties pset expr = p.Expressions.Item(2).Item(0).Data.ExpressionVisualexpr.ColWidth = 0chart.SetProperties pset expr = p.Expressions.Item(3).Item(0).Data.ExpressionVisualexpr.ColWidth = 170chart.SetProperties pset expr = p.Expressions.Item(4).Item(0).Data.ExpressionVisualexpr.ColWidth = 0chart.SetProperties pset expr = p.Expressions.Item(5).Item(0).Data.ExpressionVisualexpr.ColWidth = 0chart.SetProperties pset chart = ActiveDocument.GetSheetObject("CH195")set p = chart.GetPropertiesset expr = p.Expressions.Item(0).Item(0).Data.ExpressionVisualexpr.ColWidth = 0chart.SetProperties pset expr = p.Expressions.Item(1).Item(0).Data.ExpressionVisualexpr.ColWidth = 0chart.SetProperties pset expr = p.Expressions.Item(2).Item(0).Data.ExpressionVisualexpr.ColWidth = 0chart.SetProperties pset expr = p.Expressions.Item(3).Item(0).Data.ExpressionVisualexpr.ColWidth = 170chart.SetProperties pset expr = p.Expressions.Item(4).Item(0).Data.ExpressionVisualexpr.ColWidth = 0chart.SetProperties pset expr = p.Expressions.Item(5).Item(0).Data.ExpressionVisualexpr.ColWidth = 0chart.SetProperties pEND SUBSUB ShowPODzset chart = ActiveDocument.GetSheetObject("CH161")set p = chart.GetPropertiesset expr = p.Expressions.Item(0).Item(0).Data.ExpressionVisualexpr.ColWidth = 0chart.SetProperties pset expr = p.Expressions.Item(1).Item(0).Data.ExpressionVisualexpr.ColWidth = 0chart.SetProperties pset expr = p.Expressions.Item(2).Item(0).Data.ExpressionVisualexpr.ColWidth = 0chart.SetProperties pset expr = p.Expressions.Item(3).Item(0).Data.ExpressionVisualexpr.ColWidth = 0chart.SetProperties pset expr = p.Expressions.Item(4).Item(0).Data.ExpressionVisualexpr.ColWidth = 170chart.SetProperties pset expr = p.Expressions.Item(5).Item(0).Data.ExpressionVisualexpr.ColWidth = 0chart.SetProperties pset chart = ActiveDocument.GetSheetObject("CH160")set p = chart.GetPropertiesset expr = p.Expressions.Item(0).Item(0).Data.ExpressionVisualexpr.ColWidth = 0chart.SetProperties pset expr = p.Expressions.Item(1).Item(0).Data.ExpressionVisualexpr.ColWidth = 0chart.SetProperties pset expr = p.Expressions.Item(2).Item(0).Data.ExpressionVisualexpr.ColWidth = 0chart.SetProperties pset expr = p.Expressions.Item(3).Item(0).Data.ExpressionVisualexpr.ColWidth = 0chart.SetProperties pset expr = p.Expressions.Item(4).Item(0).Data.ExpressionVisualexpr.ColWidth = 170chart.SetProperties pset expr = p.Expressions.Item(5).Item(0).Data.ExpressionVisualexpr.ColWidth = 0chart.SetProperties pset chart = ActiveDocument.GetSheetObject("CH162")set p = chart.GetPropertiesset expr = p.Expressions.Item(0).Item(0).Data.ExpressionVisualexpr.ColWidth = 0chart.SetProperties pset expr = p.Expressions.Item(1).Item(0).Data.ExpressionVisualexpr.ColWidth = 0chart.SetProperties pset expr = p.Expressions.Item(2).Item(0).Data.ExpressionVisualexpr.ColWidth = 0chart.SetProperties pset expr = p.Expressions.Item(3).Item(0).Data.ExpressionVisualexpr.ColWidth = 0chart.SetProperties pset expr = p.Expressions.Item(4).Item(0).Data.ExpressionVisualexpr.ColWidth = 170chart.SetProperties pset expr = p.Expressions.Item(5).Item(0).Data.ExpressionVisualexpr.ColWidth = 0chart.SetProperties pset chart = ActiveDocument.GetSheetObject("CH167")set p = chart.GetPropertiesset expr = p.Expressions.Item(0).Item(0).Data.ExpressionVisualexpr.ColWidth = 0chart.SetProperties pset expr = p.Expressions.Item(1).Item(0).Data.ExpressionVisualexpr.ColWidth = 0chart.SetProperties pset expr = p.Expressions.Item(2).Item(0).Data.ExpressionVisualexpr.ColWidth = 0chart.SetProperties pset expr = p.Expressions.Item(3).Item(0).Data.ExpressionVisualexpr.ColWidth = 0chart.SetProperties pset expr = p.Expressions.Item(4).Item(0).Data.ExpressionVisualexpr.ColWidth = 170chart.SetProperties pset expr = p.Expressions.Item(5).Item(0).Data.ExpressionVisualexpr.ColWidth = 0chart.SetProperties pset chart = ActiveDocument.GetSheetObject("CH168")set p = chart.GetPropertiesset expr = p.Expressions.Item(0).Item(0).Data.ExpressionVisualexpr.ColWidth = 0chart.SetProperties pset expr = p.Expressions.Item(1).Item(0).Data.ExpressionVisualexpr.ColWidth = 0chart.SetProperties pset expr = p.Expressions.Item(2).Item(0).Data.ExpressionVisualexpr.ColWidth = 0chart.SetProperties pset expr = p.Expressions.Item(3).Item(0).Data.ExpressionVisualexpr.ColWidth = 0chart.SetProperties pset expr = p.Expressions.Item(4).Item(0).Data.ExpressionVisualexpr.ColWidth = 170chart.SetProperties pset expr = p.Expressions.Item(5).Item(0).Data.ExpressionVisualexpr.ColWidth = 0chart.SetProperties pset chart = ActiveDocument.GetSheetObject("CH171")set p = chart.GetPropertiesset expr = p.Expressions.Item(0).Item(0).Data.ExpressionVisualexpr.ColWidth = 0chart.SetProperties pset expr = p.Expressions.Item(1).Item(0).Data.ExpressionVisualexpr.ColWidth = 0chart.SetProperties pset expr = p.Expressions.Item(2).Item(0).Data.ExpressionVisualexpr.ColWidth = 0chart.SetProperties pset expr = p.Expressions.Item(3).Item(0).Data.ExpressionVisualexpr.ColWidth = 0chart.SetProperties pset expr = p.Expressions.Item(4).Item(0).Data.ExpressionVisualexpr.ColWidth = 170chart.SetProperties pset expr = p.Expressions.Item(5).Item(0).Data.ExpressionVisualexpr.ColWidth = 0chart.SetProperties pset chart = ActiveDocument.GetSheetObject("CH179")set p = chart.GetPropertiesset expr = p.Expressions.Item(0).Item(0).Data.ExpressionVisualexpr.ColWidth = 0chart.SetProperties pset expr = p.Expressions.Item(1).Item(0).Data.ExpressionVisualexpr.ColWidth = 0chart.SetProperties pset expr = p.Expressions.Item(2).Item(0).Data.ExpressionVisualexpr.ColWidth = 0chart.SetProperties pset expr = p.Expressions.Item(3).Item(0).Data.ExpressionVisualexpr.ColWidth = 0chart.SetProperties pset expr = p.Expressions.Item(4).Item(0).Data.ExpressionVisualexpr.ColWidth = 170chart.SetProperties pset expr = p.Expressions.Item(5).Item(0).Data.ExpressionVisualexpr.ColWidth = 0chart.SetProperties pset chart = ActiveDocument.GetSheetObject("CH173")set p = chart.GetPropertiesset expr = p.Expressions.Item(0).Item(0).Data.ExpressionVisualexpr.ColWidth = 0chart.SetProperties pset expr = p.Expressions.Item(1).Item(0).Data.ExpressionVisualexpr.ColWidth = 0chart.SetProperties pset expr = p.Expressions.Item(2).Item(0).Data.ExpressionVisualexpr.ColWidth = 0chart.SetProperties pset expr = p.Expressions.Item(3).Item(0).Data.ExpressionVisualexpr.ColWidth = 0chart.SetProperties pset expr = p.Expressions.Item(4).Item(0).Data.ExpressionVisualexpr.ColWidth = 170chart.SetProperties pset expr = p.Expressions.Item(5).Item(0).Data.ExpressionVisualexpr.ColWidth = 0chart.SetProperties pchart.SetProperties pset chart = ActiveDocument.GetSheetObject("CH195")set p = chart.GetPropertiesset expr = p.Expressions.Item(0).Item(0).Data.ExpressionVisualexpr.ColWidth = 0chart.SetProperties pset expr = p.Expressions.Item(1).Item(0).Data.ExpressionVisualexpr.ColWidth = 0chart.SetProperties pset expr = p.Expressions.Item(2).Item(0).Data.ExpressionVisualexpr.ColWidth = 0chart.SetProperties pset expr = p.Expressions.Item(3).Item(0).Data.ExpressionVisualexpr.ColWidth = 0chart.SetProperties pset expr = p.Expressions.Item(4).Item(0).Data.ExpressionVisualexpr.ColWidth = 170chart.SetProperties pset expr = p.Expressions.Item(5).Item(0).Data.ExpressionVisualexpr.ColWidth = 0chart.SetProperties pEND SUB

    Thanks in advance,

    Scott Gammons

    DB:2.28:Macro Problem With Naming Convention x8


    I altered your original format by changing the arrays of arrays to a more repetitive, but functional version as follows that adds each element of the array one at a time. It's not as compact or elegant as your original code, but it does get around the type mismatch error. Here it is in it's more or less final form. Thanks for your invaluable help in getting me there.


    sub ColumnWidthdim arrObj(), arrColWidth()dim i, iidim chart, p, exprredim arrObj(18) arrObj(0)= "CH160" arrObj(1)= "CH161" arrObj(2)= "CH162" arrObj(3)= "CH167" arrObj(4)= "CH168" arrObj(5)= "CH171" arrObj(6)= "CH173" arrObj(7)= "CH179" arrObj(8)= "CH195" arrObj(9)= "CH196" arrObj(10)= "CH197" arrObj(11)= "CH198" arrObj(12)= "CH199" arrObj(13)= "CH203" arrObj(14)= "CH207" arrObj(15)= "CH215" arrObj(16)= "CH216" arrObj(17)= "CH217" arrObj(18)= "CH218"redim arrColWidth(5)if ActiveDocument.Variables("v_Direction").GetContent.String = "WOS" then arrColWidth(0) = 170 arrColWidth(1) = 0 arrColWidth(2) = 0 arrColWidth(3) = 0 arrColWidth(4) = 0 arrColWidth(5) = 0else if ActiveDocument.Variables("v_Direction").GetContent.String = "RNP" then arrColWidth(0) = 0 arrColWidth(1) = 170 arrColWidth(2) = 0 arrColWidth(3) = 0 arrColWidth(4) = 0 arrColWidth(5) = 0else if ActiveDocument.Variables("v_Direction").GetContent.String = "Demand" then arrColWidth(0) = 0 arrColWidth(1) = 0 arrColWidth(2) = 170 arrColWidth(3) = 0 arrColWidth(4) = 0 arrColWidth(5) = 0else if ActiveDocument.Variables("v_Direction").GetContent.String = "RecBuy" then arrColWidth(0) = 0 arrColWidth(1) = 0 arrColWidth(2) = 0 arrColWidth(3) = 170 arrColWidth(4) = 0 arrColWidth(5) = 0else if ActiveDocument.Variables("v_Direction").GetContent.String = "POs" then arrColWidth(0) = 0 arrColWidth(1) = 0 arrColWidth(2) = 0 arrColWidth(3) = 0 arrColWidth(4) = 170 arrColWidth(5) = 0else if ActiveDocument.Variables("v_Direction").GetContent.String = "UA" then arrColWidth(0) = 0 arrColWidth(1) = 0 arrColWidth(2) = 0 arrColWidth(3) = 0 arrColWidth(4) = 0 arrColWidth(5) = 170else if ActiveDocument.Variables("v_Direction").GetContent.String = "All" then arrColWidth(0) = 170 arrColWidth(1) = 170 arrColWidth(2) = 170 arrColWidth(3) = 170 arrColWidth(4) = 170 arrColWidth(5) = 170end ifend ifend ifend ifend ifend ifend if for i = 0 to ubound(arrObj)set chart = ActiveDocument.GetSheetObject(arrObj(i))set p = chart.GetPropertiesfor ii = 0 to ubound(arrColWidth)set expr = p.Expressions.Item(ii).Item(0).Data.ExpressionVisualexpr.ColWidth = arrColWidth(ii)nextchart.SetProperties pnextend sub

  • RELEVANCY SCORE 2.28

    DB:2.28:Startupcontextlistener zf


    Whenever i am running tomcat through eclipse i am getting the following error:
    SEVERE: Error configuring application listener of class org.apache.myfaces.webapp.StartupServletContextListener
    java.lang.NoClassDefFoundError: javax/servlet/ServletContextListener

    I have the myfaces-api and my-faces impl.jar in my classpath? I searched the forum but to no avail. Plz help..

    DB:2.28:Startupcontextlistener zf

    I reinstalled tomcat and trying to run the tomcat after reinstalling jars in java classpath. But still getting the same error.

  • RELEVANCY SCORE 2.28

    DB:2.28:Is It Possible To Append Extra To Quotations.Expr Like This? 9j


    Is it possible to append extra to Quotations.Expr like this? if not, how?

    type Expr =
    | Conj of Expr * Expr
    | Expr

    DB:2.28:Is It Possible To Append Extra To Quotations.Expr Like This? 9j

    never mind, i am trying to turn afunction(algorithm) into logic, and then output another function(algorithm).

  • RELEVANCY SCORE 2.28

    DB:2.28:Help Is Needed In Jsf Development zd


    Hi
    i am trying to develop a simple JSF application,that work fine with sun application server9.when i use tomcat it starts throwing following exception...

    java.lang.NoClassDefFoundError: javax/faces/context/ExternalContext

    please can anybody tell me..cant i deploy and run JSF application in tomcat?

    to use tomcat does nay extra setting i need to do..

    regards
    shruthi

    DB:2.28:Help Is Needed In Jsf Development zd

    My quick guess is that the sun application server (because it is J2EE) has the JSF api and impl jars included in the classpath.

    Tomcat is not really J2EE server and as such does not have the JSF api and impl jars around. You can put them in the common lib path or just include them in your war

  • RELEVANCY SCORE 2.28

    DB:2.28:Caused By: Java.Lang.Linkageerror: Loader Constraints Violated When Linking cs


    Hi everybody,

    In my application i am having this exception:

    Caused by: java.lang.LinkageError: loader constraints violated when linking javax/faces/model/ListDataModel class

    I tried to find a solution on google but couldn't find useful information for my case.

    My myfaces-all.jar is defined in the web/lib, but i have a external jar that needs to use the ListDataModel. I believe here is the source of my problem. Well thanks in advance.

    DB:2.28:Caused By: Java.Lang.Linkageerror: Loader Constraints Violated When Linking cs

    Hi everybody,

    In my application i am having this exception:

    Caused by: java.lang.LinkageError: loader constraints violated when linking javax/faces/model/ListDataModel class

    I tried to find a solution on google but couldn't find useful information for my case.

    My myfaces-all.jar is defined in the web/lib, but i have a external jar that needs to use the ListDataModel. I believe here is the source of my problem. Well thanks in advance.

  • RELEVANCY SCORE 2.27

    DB:2.27:Org.Richgaces.Renderkit.Html 8j



    Hi, I am used rich 4.0.0.0.final (3.3.3.final to 4.0.0.final) I have the following error:

    Source Document: jar:file:/home/acabrera/.m2/repository/org/richfaces/ui/richfaces-components-ui/4.0.0.Final/richfaces-components-ui-4.0.0.Final.jar!/META-INF/faces-config.xml| Cause: Class 'org.richfaces.renderkit.html.QueueRenderer' is missing a runtime dependency: java.lang.NoClassDefFoundError: javax/faces/event/ComponentSystemEventListener

    my faces-config.xml is this:

    ?xml version="1.0" encoding="UTF-8"?

    faces-config version="1.2" 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_1_2.xsd"

    application

    view-handlercom.sun.facelets.FaceletViewHandler/view-handler

    !-- view-handlerorg.ajax4jsf.application.AjaxViewHandler/view-handler--

    message-bundlear.ong.padres.web.config.properties.messages/message-bundle

    !-- define el idioma --

    locale-config

    default-localees/default-locale

    /locale-config

    !--

    --

    /application

    thanks...

    DB:2.27:Org.Richgaces.Renderkit.Html 8j


    Remove this entry-

    context-param

    param-namejavax.faces.DISABLE_FACELET_JSF_VIEWHANDLER/param-name

    param-valuetrue/param-value

    /context-param

  • RELEVANCY SCORE 2.27

    DB:2.27:Javax\Naming\Context Class Not Found f7


    javax\Naming\Context class not found when using jdk1.3.1

    DB:2.27:Javax\Naming\Context Class Not Found f7

    Saurabh,

    javax/naming/Context class is in c:/jdk131/jre/lib/rt.jar
    Include rt.jar in your classpath.

    Deepak

  • RELEVANCY SCORE 2.27

    DB:2.27:Migrating From Jsf1.1 To Jsf1.2 as


    Hi all,

    I am a newbie at JSF.
    SITUATION:: I have a project already running with Java EE 1.4 and jsf 1.1.
    PROBLEM:: I want to migrate the project to Java EE 1.5 and jsf 1.2.
    SOLUTION:: ??

    I tried using the converter plugin (http://blogs.sun.com/winston/entry/vwpprojectconverter) and managed to get rid of some bugging errors.
    But i am still stuck on one exception::

    SEVERE: Exception sending context initialized event to listener instance of class
    com.sun.faces.config.ConfigureListener
    java.lang.NoClassDefFoundError: javax/faces/application/StateManagerWrapper

    and

    SEVERE: Error configuring application listener of class com.sun.faces.extensions.avatar.event.DynaFacesContextListener
    java.lang.NoClassDefFoundError: javax/faces/FacesException

    I just cant understand why this error is coming.

    What i have ALREADY tried::
    1. copying the jsf-api.jar in tomcat lib.
    2. jsf-extensions-dynamic-faces-0.1.jar to tomcat lib.

    Please give me any suggestions or solutions if any....

    DB:2.27:Migrating From Jsf1.1 To Jsf1.2 as

    HI
    Problem is solved
    I just replaced the lastest jsf-api.jar and jsf-impl.jar in web-inf/lib
    And it worked!!!!
    Phew!!..
    Thanks anyway.

  • RELEVANCY SCORE 2.27

    DB:2.27:Javax.Faces.Facesexception: Expr 39


    What would generate this error?

    javax.faces.FacesException: expr

    DB:2.27:Javax.Faces.Facesexception: Expr 39

    What would generate this error?

    javax.faces.FacesException: expr

  • RELEVANCY SCORE 2.27

    DB:2.27:Jsf2 Custom Viewhandler Get 404 Error 1d


    Hello everyone.
    I'm using netbeans 6.8.I want to dynamically change user's locale,so that they can select UI language manually.According to some advice from this forum,I make a CustomViewHandler and config it in faces-comfig.xml.Well,it works.But every h:commandLink give 404 error.And,type URL in addressbar,every xhtml is ok.
    How can i do?(Without CustomViewHandler,no problem.)
    Thanks.

    The error:---------------
    HTTP Status 404 - null not found
    type Status report
    message null not found
    description The requested resource (null not found) is not available.

    The config--------------
    application
    resource-bundle
    base-name/Bundle/base-name
    varbundle/var
    /resource-bundle
    locale-config
    default-localezh/default-locale
    supported-localeen/supported-locale
    supported-localeko/supported-locale
    supported-localeja/supported-locale
    /locale-config
    view-handlermyui.CustomLocaleViewHandler/view-handler
    /application

    The code----------------
    public class CustomLocaleViewHandler extends ViewHandler {
    protected ViewHandler baseViewHandler;

    public CustomLocaleViewHandler(ViewHandler baseViewHandler) {
    super();
    this.baseViewHandler = baseViewHandler;
    }

    @Override
    public Locale calculateLocale(FacesContext context) {
    Locale userLocal = Locale.JAPAN;
    if(userLocal != null){
    return userLocal;
    }else{
    return baseViewHandler.calculateLocale(context);
    }
    }

    @Override
    public String calculateRenderKitId(FacesContext context) {
    return baseViewHandler.calculateRenderKitId(context);
    }

    @Override
    public UIViewRoot createView(FacesContext context, String viewId) {
    return baseViewHandler.createView(context, viewId);
    }

    @Override
    public String getActionURL(FacesContext context, String viewId) {
    return baseViewHandler.getActionURL(context, viewId);
    }

    @Override
    public String getResourceURL(FacesContext context, String path) {
    return baseViewHandler.getResourceURL(context, path);
    }

    @Override
    public void renderView(FacesContext context, UIViewRoot viewToRender) throws IOException, FacesException {
    baseViewHandler.renderView(context, viewToRender);
    }

    @Override
    public UIViewRoot restoreView(FacesContext context, String viewId) {
    return baseViewHandler.restoreView(context, viewId);
    }

    @Override
    public void writeState(FacesContext context) throws IOException {
    baseViewHandler.writeState(context);
    }
    }

    DB:2.27:Jsf2 Custom Viewhandler Get 404 Error 1d

    Hello everyone.
    I'm using netbeans 6.8.I want to dynamically change user's locale,so that they can select UI language manually.According to some advice from this forum,I make a CustomViewHandler and config it in faces-comfig.xml.Well,it works.But every h:commandLink give 404 error.And,type URL in addressbar,every xhtml is ok.
    How can i do?(Without CustomViewHandler,no problem.)
    Thanks.

    The error:---------------
    HTTP Status 404 - null not found
    type Status report
    message null not found
    description The requested resource (null not found) is not available.

    The config--------------
    application
    resource-bundle
    base-name/Bundle/base-name
    varbundle/var
    /resource-bundle
    locale-config
    default-localezh/default-locale
    supported-localeen/supported-locale
    supported-localeko/supported-locale
    supported-localeja/supported-locale
    /locale-config
    view-handlermyui.CustomLocaleViewHandler/view-handler
    /application

    The code----------------
    public class CustomLocaleViewHandler extends ViewHandler {
    protected ViewHandler baseViewHandler;

    public CustomLocaleViewHandler(ViewHandler baseViewHandler) {
    super();
    this.baseViewHandler = baseViewHandler;
    }

    @Override
    public Locale calculateLocale(FacesContext context) {
    Locale userLocal = Locale.JAPAN;
    if(userLocal != null){
    return userLocal;
    }else{
    return baseViewHandler.calculateLocale(context);
    }
    }

    @Override
    public String calculateRenderKitId(FacesContext context) {
    return baseViewHandler.calculateRenderKitId(context);
    }

    @Override
    public UIViewRoot createView(FacesContext context, String viewId) {
    return baseViewHandler.createView(context, viewId);
    }

    @Override
    public String getActionURL(FacesContext context, String viewId) {
    return baseViewHandler.getActionURL(context, viewId);
    }

    @Override
    public String getResourceURL(FacesContext context, String path) {
    return baseViewHandler.getResourceURL(context, path);
    }

    @Override
    public void renderView(FacesContext context, UIViewRoot viewToRender) throws IOException, FacesException {
    baseViewHandler.renderView(context, viewToRender);
    }

    @Override
    public UIViewRoot restoreView(FacesContext context, String viewId) {
    return baseViewHandler.restoreView(context, viewId);
    }

    @Override
    public void writeState(FacesContext context) throws IOException {
    baseViewHandler.writeState(context);
    }
    }

  • RELEVANCY SCORE 2.26

    DB:2.26:Weblogic 10.0 Mp1 And Seam 2.0.1 Ga jd


    Hi,

    I am trying the seam jee5/booking example on Weblogic 10 MP1 and Seam 2.0.1GA. I have followed the guide lines presented in Chapter 27, Seam on Weblogic. I have downloaded the jboss fixes and applied them. I managed to initially get to work bar session bean to session bean injection.

    However, now when I autodeploy it, I get the following exception:

    java.lang.NoClassDefFound
    Error: org/jboss/seam/jsf/SeamPhaseListener : javax/faces/event/PhaseListener.
    java.lang.NoClassDefFoundError: org/jboss/seam/jsf/SeamPhaseListener : javax/fac
    es/event/PhaseListener

    Where should I place the jboss-seam.jar, so that the class loader picks it up. Also on a side note, for seam 2.0.1GA, if I change SessionBeanInterceptor, how would I rebuild seam (I tried rebuilding from jboss-seam-2.0.1.GA dir using ant but I got loads of errors.

    Please advise.

    Thanks,
    B. Dhaliwal

    DB:2.26:Weblogic 10.0 Mp1 And Seam 2.0.1 Ga jd

    Hi Jay,

    I managed to include SessionBeanInterceptor changes and jee5/booking works fine, incl. session bean injection.

    Thanks very much for your help.

    Regards,
    Balvindar

  • RELEVANCY SCORE 2.26

    DB:2.26:Tableselectmany Selection Validation sz


    Hello all,

    I am using adf tableSelectMany but only want to allow the users to select a maximum of two rows. I tried to use af:validator but got the following error: javax.servlet.ServletException: oracle/adf/view/faces/component/core/data/CoreTableSelectMany incompatible with javax/faces/component/EditableValueHolder.

    Any help is greatly appreciated.

    J

    DB:2.26:Tableselectmany Selection Validation sz

    Hello all,

    I am using adf tableSelectMany but only want to allow the users to select a maximum of two rows. I tried to use af:validator but got the following error: javax.servlet.ServletException: oracle/adf/view/faces/component/core/data/CoreTableSelectMany incompatible with javax/faces/component/EditableValueHolder.

    Any help is greatly appreciated.

    J

  • RELEVANCY SCORE 2.26

    DB:2.26:Error Jdev11.1.1.0.1 - Noclassdeffounderror:Javax/Faces/El/Variableresolver 1s


    Hello everyone

    I just upgraded jdev to 11.1.1.0.1. (build 5188) and migrated my application from 11.1.1.0.0

    Now i get this error during deploy:

    com.sun.faces.config.ConfigurationException:
    Source Document: zip:C:/Oracle/Middleware/jdeveloper/system/system11.1.1.0.31.51.88/DefaultDomain/servers/DefaultServer/tmp/_WL_user/COPNew/lgf6ho/war/WEB-INF/lib/bundleresolver.jar!/META-INF/faces-config.xml
    Cause: Class 'oracle.javatools.resourcebundle.BundleVariableResolver' is missing a runtime dependency: java.lang.NoClassDefFoundError: javax/faces/el/VariableResolver
    at com.sun.faces.config.processor.AbstractConfigProcessor.createInstance(AbstractConfigProcessor.java:222)
    at com.sun.faces.config.processor.ApplicationConfigProcessor.addVariableResolver(ApplicationConfigProcessor.java:481)
    at com.sun.faces.config.processor.ApplicationConfigProcessor.process(ApplicationConfigProcessor.java:239)
    at com.sun.faces.config.processor.AbstractConfigProcessor.invokeNext(AbstractConfigProcessor.java:94)
    at com.sun.faces.config.processor.LifecycleConfigProcessor.process(LifecycleConfigProcessor.java:119)
    Truncated. see log file for complete stacktrace

    Does anybody have a clue on how to solve it?

    Thanks a lot in advance

    Andre

    DB:2.26:Error Jdev11.1.1.0.1 - Noclassdeffounderror:Javax/Faces/El/Variableresolver 1s

    Exactly, embedded WLS

    I tried through "run" from the context menu and also generated an ear and deployed through WLS's console, same error ocurrs

    I compared the ear generated in jdev 11.1.1.0.0 with other generated in jdev 11.1.1.0.1, the libraries are same, all files are there.

    I'm wondering if my app should not use bundleresolver.jar anymore, since the class contained within this file uses a deprecated class (javax.faces.el.VariableResolver), hope to get some enlightenment

  • RELEVANCY SCORE 2.26

    DB:2.26:Maximize Window State From Within Portlet Faces Hyperlink? 9f


    Does anyone know how to implement/force window state from a hyperlink? I want to maximize the portlet window when any hyperlink is clicked from within the default view mode. The javax portlet api tags allow you to set this attribute like portlet:actionURL windowState="maximized"/. Is there a similar way to do this from within Creator's use of jsf? Or, am I going to have to do this within the class files? Thanks much

  • RELEVANCY SCORE 2.26

    DB:2.26:Web Application Deployment Issue In Soa Domain dx


    I have a web application war file which when deployed in Weblogic 10.3.6 separately works fine.
    When I deploy the same in a SOA domain (_Weblogic 10.3.6 + SOA 11.1.1.6 + OSB 11.1.1.6_), it's throwing the below error.

    In both the cases I am targeting the application to the Adminserver only.

    I am deploying the below files:
    Application war file, jsf-1.2.war and jstl-1.2.war.

    Error:
    --------------------------------------------------------------------------------------------------------------------------

    Dec 2, 2012 4:19:59 AM IST Notice WebLogicServer BEA-000365 Server state changed to RUNNING
    Dec 2, 2012 4:19:59 AM IST Notice WebLogicServer BEA-000360 Server started in RUNNING mode
    Dec 2, 2012 4:21:01 AM IST Warning netuix BEA-423420 Redirect is executed in begin or refresh action. Redirect url is /console/console.portal
    ?_nfpb=true_pageLabel=AppDeploymentsControlPage.
    Dec 2, 2012 4:22:15 AM IST Warning netuix BEA-423420 Redirect is executed in begin or refresh action. Redirect url is /console/console.portal
    ?_nfpb=true_pageLabel=LibraryOverviewPageLibraryOverviewPortlethandle=com.bea.console.handles.AppDeploymentHandle%28%22com.bea%3AName%3Djsf%231.2%40
    1.2.9.0%2CType%3DLibrary%22%29.
    Dec 2, 2012 4:22:51 AM IST Warning HTTP BEA-101162 User defined listener com.sun.faces.config.ConfigureListener failed: com.sun.faces.config.
    ConfigurationException: CONFIGURATION FAILED!
    Source Document: file:/C:/Oracle/Middleware/user_projects/domains/SOA_domain/servers/AdminServer/tmp/_WL_user/MI/nkgdo/war/WEB-INF/faces-config.xml
    Cause: Class 'org.springframework.web.jsf.DelegatingVariableResolver' is missing a runtime dependency: java.lang.NoClassDefFoundError: javax/faces/el/VariableResolver.
    com.sun.faces.config.ConfigurationException: CONFIGURATION FAILED!
    Source Document: file:/C:/Oracle/Middleware/user_projects/domains/SOA_domain/servers/AdminServer/tmp/_WL_user/MI/nkgdo/war/WEB-INF/faces-config.xml
    Cause: Class 'org.springframework.web.jsf.DelegatingVariableResolver' is missing a runtime dependency: java.lang.NoClassDefFoundError: javax/faces/e
    l/VariableResolver
    at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:215)
    at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:196)
    at weblogic.servlet.internal.EventsManager$FireContextListenerAction.run(EventsManager.java:481)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
    Truncated. see log file for complete stacktrace
    Caused By: com.sun.faces.config.ConfigurationException:
    Source Document: file:/C:/Oracle/Middleware/user_projects/domains/SOA_domain/servers/AdminServer/tmp/_WL_user/MI/nkgdo/war/WEB-INF/faces-config.xml
    Cause: Class 'org.springframework.web.jsf.DelegatingVariableResolver' is missing a runtime dependency: java.lang.NoClassDefFoundError: javax/faces/e
    l/VariableResolver
    at com.sun.faces.config.processor.AbstractConfigProcessor.createInstance(AbstractConfigProcessor.java:253)
    at com.sun.faces.config.processor.ApplicationConfigProcessor.addVariableResolver(ApplicationConfigProcessor.java:481)
    at com.sun.faces.config.processor.ApplicationConfigProcessor.process(ApplicationConfigProcessor.java:239)
    at com.sun.faces.config.processor.AbstractConfigProcessor.invokeNext(AbstractConfigProcessor.java:108)
    at com.sun.faces.config.processor.LifecycleConfigProcessor.process(LifecycleConfigProcessor.java:119)
    Truncated. see log file for complete stacktrace

    Dec 2, 2012 4:22:51 AM IST Error Deployer BEA-149265 Failure occurred in the execution of deployment request with ID '1354402363881' for task
    '4'. Error is: 'weblogic.application.ModuleException: '
    weblogic.application.ModuleException:
    at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:1520)
    at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:484)
    at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:425)
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
    at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119)
    Truncated. see log file for complete stacktrace
    Caused By: com.sun.faces.config.ConfigurationException:
    Source Document: file:/C:/Oracle/Middleware/user_projects/domains/SOA_domain/servers/AdminServer/tmp/_WL_user/MI/nkgdo/war/WEB-INF/faces-config.xml
    Cause: Class 'org.springframework.web.jsf.DelegatingVariableResolver' is missing a runtime dependency: java.lang.NoClassDefFoundError: javax/faces/e
    l/VariableResolver
    at com.sun.faces.config.processor.AbstractConfigProcessor.createInstance(AbstractConfigProcessor.java:253)
    at com.sun.faces.config.processor.ApplicationConfigProcessor.addVariableResolver(ApplicationConfigProcessor.java:481)
    at com.sun.faces.config.processor.ApplicationConfigProcessor.process(ApplicationConfigProcessor.java:239)
    at com.sun.faces.config.processor.AbstractConfigProcessor.invokeNext(AbstractConfigProcessor.java:108)
    at com.sun.faces.config.processor.LifecycleConfigProcessor.process(LifecycleConfigProcessor.java:119)
    Truncated. see log file for complete stacktrace

    Dec 2, 2012 4:22:51 AM IST Error Deployer BEA-149202 Encountered an exception while attempting to commit the 1 task for the application 'MI'.

    Dec 2, 2012 4:22:51 AM IST Warning Deployer BEA-149004 Failures were detected while initiating deploy task for application 'MI'.
    Dec 2, 2012 4:22:51 AM IST Warning Deployer BEA-149078 Stack trace for message 149004
    weblogic.application.ModuleException: :com.sun.faces.config.ConfigurationException:
    Source Document: file:/C:/Oracle/Middleware/user_projects/domains/SOA_domain/servers/AdminServer/tmp/_WL_user/MI/nkgdo/war/WEB-INF/faces-config.xml
    Cause: Class 'org.springframework.web.jsf.DelegatingVariableResolver' is missing a runtime dependency: java.lang.NoClassDefFoundError: javax/faces/e
    l/VariableResolver
    at com.sun.faces.config.processor.AbstractConfigProcessor.createInstance(AbstractConfigProcessor.java:253)
    at com.sun.faces.config.processor.ApplicationConfigProcessor.addVariableResolver(ApplicationConfigProcessor.java:481)
    at com.sun.faces.config.processor.ApplicationConfigProcessor.process(ApplicationConfigProcessor.java:239)
    at com.sun.faces.config.processor.AbstractConfigProcessor.invokeNext(AbstractConfigProcessor.java:108)
    at com.sun.faces.config.processor.LifecycleConfigProcessor.process(LifecycleConfigProcessor.java:119)
    Truncated. see log file for complete stacktrace

    Dec 2, 2012 4:22:51 AM IST Error Console BEA-240003 Console encountered the following error weblogic.application.ModuleException: :com.sun.fa
    ces.config.ConfigurationException:
    Source Document: file:/C:/Oracle/Middleware/user_projects/domains/SOA_domain/servers/AdminServer/tmp/_WL_user/MI/nkgdo/war/WEB-INF/faces-config.xml
    Cause: Class 'org.springframework.web.jsf.DelegatingVariableResolver' is missing a runtime dependency: java.lang.NoClassDefFoundError: javax/faces/e
    l/VariableResolver
    at com.sun.faces.config.processor.AbstractConfigProcessor.createInstance(AbstractConfigProcessor.java:253)
    at com.sun.faces.config.processor.ApplicationConfigProcessor.addVariableResolver(ApplicationConfigProcessor.java:481)
    at com.sun.faces.config.processor.ApplicationConfigProcessor.process(ApplicationConfigProcessor.java:239)
    at com.sun.faces.config.processor.AbstractConfigProcessor.invokeNext(AbstractConfigProcessor.java:108)
    at com.sun.faces.config.processor.LifecycleConfigProcessor.process(LifecycleConfigProcessor.java:119)
    at com.sun.faces.config.processor.AbstractConfigProcessor.invokeNext(AbstractConfigProcessor.java:108)
    at com.sun.faces.config.processor.FactoryConfigProcessor.process(FactoryConfigProcessor.java:132)
    at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:205)
    at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:196)
    at weblogic.servlet.internal.EventsManager$FireContextListenerAction.run(EventsManager.java:481)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
    at weblogic.servlet.internal.EventsManager.notifyContextCreatedEvent(EventsManager.java:181)
    at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:1868)
    at weblogic.servlet.internal.WebAppServletContext.start(WebAppServletContext.java:3154)
    at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:1518)
    at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:484)
    at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:425)
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
    at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119)
    at weblogic.application.internal.flow.ScopedModuleDriver.start(ScopedModuleDriver.java:200)
    at weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:247)
    at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:425)
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
    at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119)
    at weblogic.application.internal.flow.StartModulesFlow.activate(StartModulesFlow.java:27)
    at weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.java:671)
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
    at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:212)
    at weblogic.application.internal.SingleModuleDeployment.activate(SingleModuleDeployment.java:44)
    at weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:161)
    at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:79)
    at weblogic.deploy.internal.targetserver.operations.AbstractOperation.activate(AbstractOperation.java:569)
    at weblogic.deploy.internal.targetserver.operations.ActivateOperation.activateDeployment(ActivateOperation.java:150)
    at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doCommit(ActivateOperation.java:116)
    at weblogic.deploy.internal.targetserver.operations.AbstractOperation.commit(AbstractOperation.java:323)
    at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentCommit(DeploymentManager.java:844)
    at weblogic.deploy.internal.targetserver.DeploymentManager.activateDeploymentList(DeploymentManager.java:1253)
    at weblogic.deploy.internal.targetserver.DeploymentManager.handleCommit(DeploymentManager.java:440)
    at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.commit(DeploymentServiceDispatcher.java:163)
    at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doCommitCallback(DeploymentReceiverCallbackDeliverer.java
    :195)
    at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$100(DeploymentReceiverCallbackDeliverer.java:13)
    at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$2.run(DeploymentReceiverCallbackDeliverer.java:68)
    at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:545)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)

    DB:2.26:Web Application Deployment Issue In Soa Domain dx

    Check this thread...
    Spring's JSF DelegatingVariableResolver cause InvocationTargetException

  • RELEVANCY SCORE 2.26

    DB:2.26:Making References To Usercode More Consistent In Jpdl 3z



    hi, i wonder if we can make the usage of expressions in jpdl more consistent. currently we have following usages attributes expr and class to refer to user code
    custom class="..."
    custom class="..." method="..."
    custom expr="..."
    custom expr="..." method="..."

    event-listener class="..."

    decision expr="..."
    decision handler-ref="..."
    decision ...handler class="..."
    decision ...handler class="..." method="..."
    decision ...handler expr="..."
    decision ...handler expr="..." method="..."

    task ...assignment-handler class="..."
    task ...assignment-handler class="..." method="..."
    task ...assignment-handler expr="..."
    task ...assignment-handler expr="..." method="..."

    java class="..." method="..."
    java expr="..."

    script expr="..."

    object class="..."
    object class="..." method="..."
    object expr="..."
    object expr="..." method="..."

    condition expr="..."
    condition ref="..."
    condition class="..."
    condition class="..." method="..."

    DB:2.26:Making References To Usercode More Consistent In Jpdl 3z


    Some small remarks:- I agree with your latest two posts- What is the advantage of having a method attribute with a class on decision, condition etc... There should be well defined interfaces like execute and decide that need to return the correct type. Adding methods is not needed there imo.- With expr I'd ditch the method completely in favour of the normal EL notations for it.- decision handler-ref="xxx" is exactly the same as decision ...handler expr="#{xxx}" would not be my choice. I'd give the handler a name and have the handler-ref point to that name. Unless that is what you mean if xxx is the name of the handler in the jbpm context. Then what you state is what I mean as well.- What is the '' element?- The ref on condition should also be handler-ref like on decision, or the other way around, just be concise

  • RELEVANCY SCORE 2.26

    DB:2.26:Problem Upgrading To Richfaces 3.2 On Seam 1.2.1 9k


    Hello,

    Im trying to update my app to use richFaces3.2.

    Now I use seam 1.2.1 on jboss ap 4.0.5.

    When i include the richfaces jars and i change de web.xml as says in the richFaces install manual, i get this error:

    08:59:09,235 INFO Initialization done initializing Seam
    08:59:09,455 INFO FacesConfigurator Reading standard config org/apache/myfaces/resource/standard-faces-config.xml
    08:59:09,546 INFO FacesConfigurator Reading config jar:file:/C:/jboss-4.0.5.GA/server/default/tmp/deploy/tmp58105jboss-seam.jar!/META-INF/faces-config.xml
    08:59:09,546 INFO FacesConfigurator Reading config jar:file:/C:/jboss-4.0.5.GA/server/default/./deploy/timeReporting.ear/timeReporting.war/WEB-INF/lib/ajax4jsf-1.1.1-SNAPSHOT.jar!/META-INF/faces-config.xml
    08:59:09,616 INFO FacesConfigurator Reading config jar:file:/C:/jboss-4.0.5.GA/server/default/./deploy/timeReporting.ear/timeReporting.war/WEB-INF/lib/jboss-seam-debug.jar!/META-INF/faces-config.xml
    08:59:09,626 INFO FacesConfigurator Reading config jar:file:/C:/jboss-4.0.5.GA/server/default/./deploy/timeReporting.ear/timeReporting.war/WEB-INF/lib/jboss-seam-mail.jar!/META-INF/faces-config.xml
    08:59:09,626 INFO FacesConfigurator Reading config jar:file:/C:/jboss-4.0.5.GA/server/default/./deploy/timeReporting.ear/timeReporting.war/WEB-INF/lib/jboss-seam-pdf.jar!/META-INF/faces-config.xml
    08:59:09,636 INFO FacesConfigurator Reading config jar:file:/C:/jboss-4.0.5.GA/server/default/./deploy/timeReporting.ear/timeReporting.war/WEB-INF/lib/jboss-seam-ui.jar!/META-INF/faces-config.xml
    08:59:09,666 INFO FacesConfigurator Reading config jar:file:/C:/jboss-4.0.5.GA/server/default/./deploy/timeReporting.ear/timeReporting.war/WEB-INF/lib/jsf-facelets.jar!/META-INF/faces-config.xml
    08:59:09,676 INFO FacesConfigurator Reading config jar:file:/C:/jboss-4.0.5.GA/server/default/./deploy/timeReporting.ear/timeReporting.war/WEB-INF/lib/richfaces-impl-3.2.0.GA.jar!/META-INF/faces-config.xml
    08:59:14,481 INFO FacesConfigurator Reading config jar:file:/C:/jboss-4.0.5.GA/server/default/./deploy/timeReporting.ear/timeReporting.war/WEB-INF/lib/richfaces-ui-3.2.0.GA.jar!/META-INF/faces-config.xml
    08:59:19,367 INFO FacesConfigurator Reading config /WEB-INF/faces-config.xml
    08:59:19,527 WARN LocaleUtils Locale name in faces-config.xml null or empty, setting locale to default locale : esES
    08:59:20,178 ERROR timeReporting Exception sending context initialized event to listener instance of class org.apache.myfaces.webapp.StartupServletContextListener
    java.lang.NoClassDefFoundError: javax/faces/component/ActionSource2

    DB:2.26:Problem Upgrading To Richfaces 3.2 On Seam 1.2.1 9k

    Hello,

    Im trying to update my app to use richFaces3.2.

    Now I use seam 1.2.1 on jboss ap 4.0.5.

    When i include the richfaces jars and i change de web.xml as says in the richFaces install manual, i get this error:

    08:59:09,235 INFO Initialization done initializing Seam
    08:59:09,455 INFO FacesConfigurator Reading standard config org/apache/myfaces/resource/standard-faces-config.xml
    08:59:09,546 INFO FacesConfigurator Reading config jar:file:/C:/jboss-4.0.5.GA/server/default/tmp/deploy/tmp58105jboss-seam.jar!/META-INF/faces-config.xml
    08:59:09,546 INFO FacesConfigurator Reading config jar:file:/C:/jboss-4.0.5.GA/server/default/./deploy/timeReporting.ear/timeReporting.war/WEB-INF/lib/ajax4jsf-1.1.1-SNAPSHOT.jar!/META-INF/faces-config.xml
    08:59:09,616 INFO FacesConfigurator Reading config jar:file:/C:/jboss-4.0.5.GA/server/default/./deploy/timeReporting.ear/timeReporting.war/WEB-INF/lib/jboss-seam-debug.jar!/META-INF/faces-config.xml
    08:59:09,626 INFO FacesConfigurator Reading config jar:file:/C:/jboss-4.0.5.GA/server/default/./deploy/timeReporting.ear/timeReporting.war/WEB-INF/lib/jboss-seam-mail.jar!/META-INF/faces-config.xml
    08:59:09,626 INFO FacesConfigurator Reading config jar:file:/C:/jboss-4.0.5.GA/server/default/./deploy/timeReporting.ear/timeReporting.war/WEB-INF/lib/jboss-seam-pdf.jar!/META-INF/faces-config.xml
    08:59:09,636 INFO FacesConfigurator Reading config jar:file:/C:/jboss-4.0.5.GA/server/default/./deploy/timeReporting.ear/timeReporting.war/WEB-INF/lib/jboss-seam-ui.jar!/META-INF/faces-config.xml
    08:59:09,666 INFO FacesConfigurator Reading config jar:file:/C:/jboss-4.0.5.GA/server/default/./deploy/timeReporting.ear/timeReporting.war/WEB-INF/lib/jsf-facelets.jar!/META-INF/faces-config.xml
    08:59:09,676 INFO FacesConfigurator Reading config jar:file:/C:/jboss-4.0.5.GA/server/default/./deploy/timeReporting.ear/timeReporting.war/WEB-INF/lib/richfaces-impl-3.2.0.GA.jar!/META-INF/faces-config.xml
    08:59:14,481 INFO FacesConfigurator Reading config jar:file:/C:/jboss-4.0.5.GA/server/default/./deploy/timeReporting.ear/timeReporting.war/WEB-INF/lib/richfaces-ui-3.2.0.GA.jar!/META-INF/faces-config.xml
    08:59:19,367 INFO FacesConfigurator Reading config /WEB-INF/faces-config.xml
    08:59:19,527 WARN LocaleUtils Locale name in faces-config.xml null or empty, setting locale to default locale : esES
    08:59:20,178 ERROR timeReporting Exception sending context initialized event to listener instance of class org.apache.myfaces.webapp.StartupServletContextListener
    java.lang.NoClassDefFoundError: javax/faces/component/ActionSource2

  • RELEVANCY SCORE 2.26

    DB:2.26:Resolving A Bean W/ Jsf 1.2 / Sun Web Server 7 mj


    i use the following in my code,

    public Object resolve(String name) {
    FacesContext fcontext = FacesContext.getCurrentInstance();
    ELResolver resolver = fcontext.getELContext().getELResolver();
    try {
    Object o = resolver.getValue(fcontext.getELContext(), null, name);
    assert(o != null);
    return o;
    } catch (FacesException fe) {
    return legacyResolve(name);
    }
    }to get a handle to a managed bean in my code. it works just about everywhere, but on sun web server 7, i get,

    Caused by: javax.faces.FacesException: javax.faces.FacesException: Cant set managed bean property: realmBean.
    at com.sun.faces.application.ApplicationAssociate.createAndMaybeStoreManagedBeans(ApplicationAssociate.java:556)
    at com.sun.faces.el.ManagedBeanELResolver.getValue(ManagedBeanELResolver.java:82)
    at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:143)
    at com.sun.faces.el.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:64)
    at com.sun.identity.admin.ManagedBeanResolver.resolve(ManagedBeanResolver.java:48)i had the same problem on glassfish 2.1, and i solved it by replacing the stock JSF 1.2_04 in SWS 7 with JSF 1.2_12. this doesn't work on SWS 7 though, as i get,

    "DTD factory ... does not extend from ...", from xerces code.

    Caused by: com.sun.org.apache.xerces.internal.impl.dv.DVFactoryException: DTD factory class com.sun.org.apache.xerces.internal.impl.dv.dtd.DTDDVFactoryImpl does not extend from DTDDVFactory.
    at com.sun.org.apache.xerces.internal.impl.dv.DTDDVFactory.getInstance(DTDDVFactory.java:62)
    at com.sun.org.apache.xerces.internal.impl.dv.DTDDVFactory.getInstance(DTDDVFactory.java:44)
    at com.sun.org.apache.xerces.internal.impl.xs.opti.SchemaParsingConfig.init(SchemaParsingConfig.java:309)
    at com.sun.org.apache.xerces.internal.impl.xs.opti.SchemaParsingConfig.init

    i assume the cause of this is that the version of xerces bundled with SWS 7 is not high enough to work with the new version of JSF (1.2_12) i included. it looks like it can't read the header of faces-config.xml (schemaLocation stuff).

    so, i'm stuck. as far as i know, the resolver pattern is quite common and at this point i can't live without it.

    DB:2.26:Resolving A Bean W/ Jsf 1.2 / Sun Web Server 7 mj

    i use the following in my code,

    public Object resolve(String name) {
    FacesContext fcontext = FacesContext.getCurrentInstance();
    ELResolver resolver = fcontext.getELContext().getELResolver();
    try {
    Object o = resolver.getValue(fcontext.getELContext(), null, name);
    assert(o != null);
    return o;
    } catch (FacesException fe) {
    return legacyResolve(name);
    }
    }to get a handle to a managed bean in my code. it works just about everywhere, but on sun web server 7, i get,

    Caused by: javax.faces.FacesException: javax.faces.FacesException: Cant set managed bean property: realmBean.
    at com.sun.faces.application.ApplicationAssociate.createAndMaybeStoreManagedBeans(ApplicationAssociate.java:556)
    at com.sun.faces.el.ManagedBeanELResolver.getValue(ManagedBeanELResolver.java:82)
    at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:143)
    at com.sun.faces.el.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:64)
    at com.sun.identity.admin.ManagedBeanResolver.resolve(ManagedBeanResolver.java:48)i had the same problem on glassfish 2.1, and i solved it by replacing the stock JSF 1.2_04 in SWS 7 with JSF 1.2_12. this doesn't work on SWS 7 though, as i get,

    "DTD factory ... does not extend from ...", from xerces code.

    Caused by: com.sun.org.apache.xerces.internal.impl.dv.DVFactoryException: DTD factory class com.sun.org.apache.xerces.internal.impl.dv.dtd.DTDDVFactoryImpl does not extend from DTDDVFactory.
    at com.sun.org.apache.xerces.internal.impl.dv.DTDDVFactory.getInstance(DTDDVFactory.java:62)
    at com.sun.org.apache.xerces.internal.impl.dv.DTDDVFactory.getInstance(DTDDVFactory.java:44)
    at com.sun.org.apache.xerces.internal.impl.xs.opti.SchemaParsingConfig.init(SchemaParsingConfig.java:309)
    at com.sun.org.apache.xerces.internal.impl.xs.opti.SchemaParsingConfig.init

    i assume the cause of this is that the version of xerces bundled with SWS 7 is not high enough to work with the new version of JSF (1.2_12) i included. it looks like it can't read the header of faces-config.xml (schemaLocation stuff).

    so, i'm stuck. as far as i know, the resolver pattern is quite common and at this point i can't live without it.

  • RELEVANCY SCORE 2.26

    DB:2.26:Moduleexception-Variableresolver 1p


    Hey
    Im using JDev 11.1.2.3.0
    And Im rtying to deploy my app
    I get this error-
    [10:12:55 AM] Weblogic Server Exception: weblogic.application.ModuleException:
    [10:12:55 AM] Caused by: java.lang.NoClassDefFoundError: javax/faces/el/VariableResolver
    [10:12:55 AM] See server logs or server console for more details.

    Waht can cause this? How can I fix this?

    Tnx
    Talya

    DB:2.26:Moduleexception-Variableresolver 1p

    Case anyone else encounter this- it seems the problem happened because of my application'c connection to the database (in deployment) wasnt established properly

  • RELEVANCY SCORE 2.26

    DB:2.26:Javax Comm 13


    Could anyone please explain the exact use of JAVAX COMM ? (ie what it does ?)

  • RELEVANCY SCORE 2.26

    DB:2.26:Facesexception: Can't Instantiate Class 8z


    Hi,

    Iam getting

    javax.servlet.ServletException: javax.servlet.jsp.JspException: javax.faces.FacesException: javax.faces.FacesException: Can't instantiate class: 'selectedOne'.
    org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:821)
    org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:758)
    org.apache.jsp.popup_jsp._jspService(popup_jsp.java:84)
    org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:322)
    com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:147)
    com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87)
    com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
    com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
    javax.faces.webapp.FacesServlet.service(FacesServlet.java:198

    this exception .........

    my faces-config.xml is

    managed-bean
    managed-bean-namecountryBean/managed-bean-name
    managed-bean-classcom.admob.accounting.country.bean.CountryBean/managed-bean-class
    managed-bean-scopesession/managed-bean-scope
    managed-property
    property-nameselectedOne/property-name
    list-entries
    value-classjavax.faces.model.SelectItem/value-class
    null-value/
    /list-entries
    /managed-property

    and in my jsp page

    h:selectOneMenu id="countryValues" value="#{countryBean.selectedOne}"
    f:selectItems value="#{countryBean.countryItems}"/
    /h:selectOneMenu

    and in my bean class is

    public class CountryBean {
    private String selectedOne;
    //private ListCountryBO selectItems;

    public ListSelectItem GetCountryItems(){

    ListSelectItem list = new ArrayListSelectItem();
    Session session = null;
    List countryList = new ArrayList();
    try
    {
    session=HibernateUtil.openSession();
    session.beginTransaction();
    System.out.println("Hibernate Connection is Just Opened");
    DefaultDAOCountryBO dao = new DefaultDAOCountryBO(session, CountryBO.class);
    countryList = dao.findAll();
    Iterator itr = countryList.iterator();
    while(itr.hasNext()){
    CountryBO country = (CountryBO) itr.next();
    SelectItem items = new SelectItem(country.getCountryName());
    list.add(items);
    }
    }
    catch (Exception e)
    {
    System.out.println("Error In Connection");
    }
    finally
    {
    HibernateUtil.closeSession();
    }
    return list;
    }

    this is not working .Plz any body suggest?

    DB:2.26:Facesexception: Can't Instantiate Class 8z

    Hi,

    Iam getting

    javax.servlet.ServletException: javax.servlet.jsp.JspException: javax.faces.FacesException: javax.faces.FacesException: Can't instantiate class: 'selectedOne'.
    org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:821)
    org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:758)
    org.apache.jsp.popup_jsp._jspService(popup_jsp.java:84)
    org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:322)
    com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:147)
    com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87)
    com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
    com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
    javax.faces.webapp.FacesServlet.service(FacesServlet.java:198

    this exception .........

    my faces-config.xml is

    managed-bean
    managed-bean-namecountryBean/managed-bean-name
    managed-bean-classcom.admob.accounting.country.bean.CountryBean/managed-bean-class
    managed-bean-scopesession/managed-bean-scope
    managed-property
    property-nameselectedOne/property-name
    list-entries
    value-classjavax.faces.model.SelectItem/value-class
    null-value/
    /list-entries
    /managed-property

    and in my jsp page

    h:selectOneMenu id="countryValues" value="#{countryBean.selectedOne}"
    f:selectItems value="#{countryBean.countryItems}"/
    /h:selectOneMenu

    and in my bean class is

    public class CountryBean {
    private String selectedOne;
    //private ListCountryBO selectItems;

    public ListSelectItem GetCountryItems(){

    ListSelectItem list = new ArrayListSelectItem();
    Session session = null;
    List countryList = new ArrayList();
    try
    {
    session=HibernateUtil.openSession();
    session.beginTransaction();
    System.out.println("Hibernate Connection is Just Opened");
    DefaultDAOCountryBO dao = new DefaultDAOCountryBO(session, CountryBO.class);
    countryList = dao.findAll();
    Iterator itr = countryList.iterator();
    while(itr.hasNext()){
    CountryBO country = (CountryBO) itr.next();
    SelectItem items = new SelectItem(country.getCountryName());
    list.add(items);
    }
    }
    catch (Exception e)
    {
    System.out.println("Error In Connection");
    }
    finally
    {
    HibernateUtil.closeSession();
    }
    return list;
    }

    this is not working .Plz any body suggest?

  • RELEVANCY SCORE 2.25

    DB:2.25:Javax 3p


    What is javax? Is it just a package name or it has any other purpose

    DB:2.25:Javax 3p

    Java eXtension. It has eXtra stuff. Not only does it have the Swing stuff, but it has accessibility, crypto, security...

  • RELEVANCY SCORE 2.25

    DB:2.25:Problem Running Seam Example zx



    I built and deployed Seam Booking Example without errors. I went to web browser and got application first page, with user login form. When I chose any: register new user or account login I get following exception:

    17:48:38,781 INFO [STDOUT] Hibernate: select user0_.username as username2_, user0_.name as name2_, user0_.password as password2_ from User user0_ where user0_.username=? and user0_.password=?
    17:48:38,812 ERROR [[Faces Servlet]] Servlet.service() for servlet Faces Servlet threw exception
    java.lang.NoClassDefFoundError: javax/portlet/ActionResponse
    at org.jboss.seam.core.Manager.writeConversationIdToResponse(Manager.java:345)
    at org.jboss.seam.core.Manager.storeConversation(Manager.java:302)
    at org.jboss.seam.jsf.SeamPhaseListener.storeAnyConversationContext(SeamPhaseListener.java:235)
    at org.jboss.seam.jsf.SeamPhaseListener.beforeSaveState(SeamPhaseListener.java:189)
    at org.jboss.seam.jsf.SeamPhaseListener.afterPhase(SeamPhaseListener.java:169)

    ...

    DB:2.25:Problem Running Seam Example zx


    this only affected last night's nightly build.it is now fixed in cvs

  • RELEVANCY SCORE 2.25

    DB:2.25:Jsf_Parent Classloader: sj


    Hai All

    Some Times I am facing this problem whenever I deploy my jsf Application in to Tomcat

    May 2, 2008 11:29:36 AM org.apache.catalina.core.StandardContext listenerStart
    SEVERE: Skipped installing application listeners due to previous error(s)
    May 2, 2008 11:29:36 AM org.apache.catalina.core.ApplicationContext log
    INFO: Marking servlet Faces Servlet as unavailable
    May 2, 2008 11:29:36 AM org.apache.catalina.core.ApplicationContext log
    SEVERE: Error loading WebappClassLoader
    delegate: false
    repositories:
    ---------- Parent Classloader:
    org.apache.catalina.loader.StandardClassLoader@179c285
    javax.faces.webapp.FacesServlet
    java.lang.ClassNotFoundException: javax.faces.webapp.FacesServlet

    and also

    May 2, 2008 11:29:41 AM org.apache.catalina.core.StandardContext listenerStart
    SEVERE: Exception sending context initialized event to listener instance of class com.sun.faces.config.ConfigureListener
    java.lang.NoClassDefFoundError: javax/faces/application/StateManagerWrapper

    DB:2.25:Jsf_Parent Classloader: sj

    Hai All

    Some Times I am facing this problem whenever I deploy my jsf Application in to Tomcat

    May 2, 2008 11:29:36 AM org.apache.catalina.core.StandardContext listenerStart
    SEVERE: Skipped installing application listeners due to previous error(s)
    May 2, 2008 11:29:36 AM org.apache.catalina.core.ApplicationContext log
    INFO: Marking servlet Faces Servlet as unavailable
    May 2, 2008 11:29:36 AM org.apache.catalina.core.ApplicationContext log
    SEVERE: Error loading WebappClassLoader
    delegate: false
    repositories:
    ---------- Parent Classloader:
    org.apache.catalina.loader.StandardClassLoader@179c285
    javax.faces.webapp.FacesServlet
    java.lang.ClassNotFoundException: javax.faces.webapp.FacesServlet

    and also

    May 2, 2008 11:29:41 AM org.apache.catalina.core.StandardContext listenerStart
    SEVERE: Exception sending context initialized event to listener instance of class com.sun.faces.config.ConfigureListener
    java.lang.NoClassDefFoundError: javax/faces/application/StateManagerWrapper

  • RELEVANCY SCORE 2.25

    DB:2.25:How To Remove Home Page Link In Presentation Side ss


    Hi

    in the saw.sessionsinfo.xml file ,i change the home link prop true to false
    but it not remove from the presentation side

    below is my file

    Below is my script file
    plz check it
    give if any errors
    ?xml version="1.0" encoding="UTF-8"?
    resourceBundle xmlns="oracle.bi.ps.resourceBundle/v1"

    gdexpression id="noLogoffUI" expr="session.hideLogoffLink" /
    gdexpression id="syndicate" expr="session.syndicate" /
    gdexpression id="canAccessDashboards" expr="privileges.Access['Global Portal']" /

    gdexpression id="hdrLinkCatalog" expr="true" /
    gdexpression id="hdrLinkOpen" expr="true" /
    gdexpression id="hdrLinkAdvanced" expr="true" /
    gdexpression id="hdrLinkHelp" expr="true" /
    gdexpression id="hdrLinkHome" expr="false" /
    gdexpression id="hdrLinkGSearch" expr="true" /
    gdexpression id="hdrLinkNew" expr="true" /
    gdexpression id="hdrLinkDashboards" expr="true" /
    gdexpression id="hdrLinkSettings" expr="true" /

    gdexpression id="bipKeepAlive" expr="session.bipKeepAlive" /
    gdexpression id="bipWebUrl" expr="system.config['AdvancedReporting/WebURL']" /
    gdexpression id="bipExternalRepository" expr="system.config['AdvancedReporting/ExternalRepository']" /

    gdexpression id="biComposerContext" expr="system.config['BIComposer/ContextPath']" /
    /resourceBundle

    plz anybody give solution for this

  • RELEVANCY SCORE 2.25

    DB:2.25:Startupservletcontextlistener Problem 8z


    Whenever i am running tomcat through eclipse i am getting the following error:
    SEVERE: Error configuring application listener of class org.apache.myfaces.webapp.StartupServletContextListener
    java.lang.NoClassDefFoundError: javax/servlet/ServletContextListener

    I have the myfaces-api and my-faces impl.jar in my classpath? I searched the forum but to no avail. Plz help..

    DB:2.25:Startupservletcontextlistener Problem 8z

    Well my first and foremost question for you would be what version of TOMCAT are you using.

    If it supports Servlet 2.3 and higher if no please shift your devolopment environment to higher version of tomcat.

    What Servlet version spec have been configured under deployment descriptor for the web application (web.xml) ?

    (!DOCTYPE web-app
    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
    "http://java.sun.com/dtd/web-app_2_3.dtd")

    Make sure the definations are 2.3 or higher (you'd have XSD specific definations for Servlet 2.4 specs)

    Can you ensure that "servlet-api.jar" is present in the Server Classpath i.e "common/lib".

    And other thing which i'm intrested to know is have you cleared old server logs from your TOMCAT if know please do it and check out the result.

  • RELEVANCY SCORE 2.25

    DB:2.25:Error Installing Jrules Jbrms sz



    I have installed drools-jbrms.war to bea weblogic server 9.2When trying to start the Web Application from the weblogic server administration console I am getting the following error :
    java.lang.NoClassDefFoundError: javax/faces/context/FacesContext

    DB:2.25:Error Installing Jrules Jbrms sz


    I have installed drools-jbrms.war to bea weblogic server 9.2When trying to start the Web Application from the weblogic server administration console I am getting the following error :
    java.lang.NoClassDefFoundError: javax/faces/context/FacesContext

  • RELEVANCY SCORE 2.25

    DB:2.25:Problems With Jenia Popupframe s7


    I can't use popupFrame component

    this is the error
    javax.servlet.ServletException: javax/faces/component/UIComponent
    the class that requests exists in myfaces, I don't understand why

    in consola eclipse

    Overwriting renderer with family = javax.faces.Command rendererType = javax.faces.Button renderer class = org.apache.myfaces.renderkit.html.jsf.DummyFormHtmlButtonRenderer
    23:47:27,921 INFO [HtmlRenderKitImpl] Overwriting renderer with family = javax.faces.Command rendererType = javax.faces.Link renderer class = org.apache.myfaces.renderkit.html.jsf.DummyFormHtmlLinkRenderer

    in my JSP

    jp:popupFrame height="450px" width="550px" actionOpen="#{publicar.ingresarImagenes}"
    h:outputText value="Popup frame"/
    /jp:popupFrame

    and javabean

    public String ingresarImagenes(){

    return (new String("Success"));
    }

    thanks.

    DB:2.25:Problems With Jenia Popupframe s7

    I can't use popupFrame component

    this is the error
    javax.servlet.ServletException: javax/faces/component/UIComponent
    the class that requests exists in myfaces, I don't understand why

    in consola eclipse

    Overwriting renderer with family = javax.faces.Command rendererType = javax.faces.Button renderer class = org.apache.myfaces.renderkit.html.jsf.DummyFormHtmlButtonRenderer
    23:47:27,921 INFO [HtmlRenderKitImpl] Overwriting renderer with family = javax.faces.Command rendererType = javax.faces.Link renderer class = org.apache.myfaces.renderkit.html.jsf.DummyFormHtmlLinkRenderer

    in my JSP

    jp:popupFrame height="450px" width="550px" actionOpen="#{publicar.ingresarImagenes}"
    h:outputText value="Popup frame"/
    /jp:popupFrame

    and javabean

    public String ingresarImagenes(){

    return (new String("Success"));
    }

    thanks.

  • RELEVANCY SCORE 2.24

    DB:2.24:Jsf Facesmessage Constructor 33


    Fairly new to faces, but not at all new to web applications.

    I have written a custom validator for a certain field, and want to provide an internationalized error message.
    What I want to do is something like this:

    FacesMessage message = new FacesMessage("INVALID_DATE_FORMAT");
    throw new ValidatorException(message);I then define INVALID_DATE_FORMAT in the default resource bundle.

    The JSF API for [url http://java.sun.com/javaee/javaserverfaces/1.1_01/docs/api/javax/faces/application/FacesMessage.html] FacesMessage seems to indicate that it uses the ResourceBundle to look up on a messageId.

    The problem is this doesn't seem to happen.
    I've done a google search, and forum search, but haven't found anything definitive on this.

    Any ideas?
    evnafets

    DB:2.24:Jsf Facesmessage Constructor 33

    Using Shale can simplify this for you. If you bind the component in question to your backing bean, you can extend the AbstractViewController library to obtain several helper methods. One such message is:

    error(javax.faces.component.UIComponent component,
    java.lang.String summary)Using this, you can send any old String as a message to your component. Check out the link below to see the Java doc for it, and the other methods

    http://struts.apache.org/struts-shale/shale-core/apidocs/index.html

  • RELEVANCY SCORE 2.24

    DB:2.24:Mojarra Doesn't Implement Setting Properties On Declared Converters? 3f


    Hi,

    I tried to register a custom converter in faces-config, by means of the following declaration:

    converter
    descriptionFormats a number with exactly two fractional digits./description
    converter-idnumberformat.two/converter-id
    converter-classjavax.faces.convert.NumberConverter/converter-class
    property
    property-namemaxFractionDigits/property-name
    property-classjava.lang.Integer/property-class
    default-value2/default-value
    /property
    property
    property-nameminFractionDigits/property-name
    property-classjava.lang.Integer/property-class
    default-value2/default-value
    /property
    /converterI've used this kind of code before a long time ago when using MyFaces, and this always Just Worked. However, with Mojarra it just doesn't work.

    I used the converter on my view like this:

    h:outputText value="#{bb.someVal}"
    f:converter converterId="numberformat.two"/
    /h:outputTextBy putting a breakpoint in javax.faces.convert.NumberConverter, I can check that the converter is being called, but the properties just aren't set on the instance.

    I hunted the Mojarra source code, but I also can't find any code that is supposed to set these properties.

    For instance, the ApplicationImp.createConverter method consists of this code:

    public Converter createConverter(String converterId) {
    if (converterId == null) {
    String message = MessageUtils.getExceptionMessageString
    (MessageUtils.NULL_PARAMETERS_ERROR_MESSAGE_ID, "convertedId");
    throw new NullPointerException(message);
    }
    Converter returnVal = (Converter) newThing(converterId, converterIdMap);
    if (returnVal == null) {
    Object[] params = {converterId};
    if (logger.isLoggable(Level.SEVERE)) {
    logger.log(Level.SEVERE,
    "jsf.cannot_instantiate_converter_error", converterId);
    }
    throw new FacesException(MessageUtils.getExceptionMessageString(
    MessageUtils.NAMED_OBJECT_NOT_FOUND_ERROR_MESSAGE_ID, params));
    }
    if (logger.isLoggable(Level.FINE)) {
    logger.fine(MessageFormat.format("created converter of type ''{0}''", converterId));
    }
    return returnVal;
    }So without all the error checking, the method basically boils down to just this:

    return (Converter) newThing(converterId, converterIdMap);The heart of newThing consists of this:

    try {
    result = clazz.newInstance();
    } catch (Throwable t) {
    throw new FacesException((MessageUtils.getExceptionMessageString(
    MessageUtils.CANT_INSTANTIATE_CLASS_ERROR_MESSAGE_ID,
    clazz.getName())), t);
    }
    return result;So there's no code that's supposed to set these properties in sight anywhere.

    Also the converter tag (com.sun.faces.taglib.jsf_core.ConverterTag) nor any of its base classes seems to contain such code.

    Either I'm doing something very wrong, or Mojarra has silently removed support for setting properties on custom converters, which would seem awkward.

    Any help would be greatly appreciated.

    DB:2.24:Mojarra Doesn't Implement Setting Properties On Declared Converters? 3f

    I would recommend logging an issue against the spec [1].

    Perhaps it can be dealt with for JSF 2.1.

    [1] https://javaserverfaces-spec-public.dev.java.net

  • RELEVANCY SCORE 2.24

    DB:2.24:Classcastexception: Htmlpanelgrid Incompatible With Uioutput z7


    Hi All,

    I have a strange problem. Page 1 loads. I navigate to page 2 from page 1. I navigate back by clicking the Back button on page 2. I get the following exception.

    java.lang.ClassCastException: javax/faces/component/html/HtmlPanelGrid incompatible with javax/faces/component/UIOutput

    When i run it in debug mode, i found that it bombs at a place where i have the following line of code in JSP
    f:verbatim
    //I print some variable from session using JSTL tags.
    /f:verbatim
    %ArrayList gcvcDetailsList = new ArrayList();
    .......

    can someone help me?

    DB:2.24:Classcastexception: Htmlpanelgrid Incompatible With Uioutput z7

    That's why I recommended you to upgrade to JSF 1.1_02. It shouldn't have any impact on the existing JSF 1.0 code. Upgrading to JSF 1.2 would require more changes.

  • RELEVANCY SCORE 2.24

    DB:2.24:Re: How To Determine The Managed Bean Class/Method Within A Phaselistener dj


    Hi,

    Assume you have a component implementing ActionSource, for instance a h:commandLink action="#{bean.action}" .../ 1. Add a custom application listener in the faces-config.xml:
    application
    action-listenerMyActionListener/action-listener
    ...
    /application2. MyActionListener
    public class MyActionListener implements ActionListener {

    private ActionListener fDefaultActionListener;

    public MyActionListener(ActionListener defaultActionListener)
    {
    fDefaultActionListener = defaultActionListener;
    }

    public void processAction(ActionEvent event) throws AbortProcessingException {
    MethodBinding mb=((ActionSource)event.getComponent()).getAction();
    String expr=mb.getExpressionString();
    expr=expr.substring(expr.indexOf('{')+1, expr.indexOf('}'));
    String beanPath=expr.substring(0,expr.lastIndexOf('.'));
    String method =expr.substring(expr.lastIndexOf('.')+1);
    ValueBinding vb = FacesContext.getCurrentInstance().getApplication().createValueBinding("#{"+beanPath+"}");
    Class beanClass = vb.getType(FacesContext.getCurrentInstance());
    //do something with beanClass + method

    //process default action listener
    //if you skip this, you need to manage the navigation
    fDefaultActionListener.processAction(event);
    }
    ...
    }Note ValueBinding/MethodBinding are depracted, but the above should be easily adapted to ValueExpression/MethodExpression.
    hope this help.

    DB:2.24:Re: How To Determine The Managed Bean Class/Method Within A Phaselistener dj

    Hi,

    Assume you have a component implementing ActionSource, for instance a h:commandLink action="#{bean.action}" .../ 1. Add a custom application listener in the faces-config.xml:
    application
    action-listenerMyActionListener/action-listener
    ...
    /application2. MyActionListener
    public class MyActionListener implements ActionListener {

    private ActionListener fDefaultActionListener;

    public MyActionListener(ActionListener defaultActionListener)
    {
    fDefaultActionListener = defaultActionListener;
    }

    public void processAction(ActionEvent event) throws AbortProcessingException {
    MethodBinding mb=((ActionSource)event.getComponent()).getAction();
    String expr=mb.getExpressionString();
    expr=expr.substring(expr.indexOf('{')+1, expr.indexOf('}'));
    String beanPath=expr.substring(0,expr.lastIndexOf('.'));
    String method =expr.substring(expr.lastIndexOf('.')+1);
    ValueBinding vb = FacesContext.getCurrentInstance().getApplication().createValueBinding("#{"+beanPath+"}");
    Class beanClass = vb.getType(FacesContext.getCurrentInstance());
    //do something with beanClass + method

    //process default action listener
    //if you skip this, you need to manage the navigation
    fDefaultActionListener.processAction(event);
    }
    ...
    }Note ValueBinding/MethodBinding are depracted, but the above should be easily adapted to ValueExpression/MethodExpression.
    hope this help.

  • RELEVANCY SCORE 2.24

    DB:2.24:C# Generics On Conversion Operator And Constructor cx


    I have so far a class Expr with a constructor taking a string, and the following two conversion operators. public static implicit operator Expr(int expr){ return new Expr(expr.ToString());} public static implicit operator Expr(string expr){ return new Expr(expr);}I have various others, but they all get distilled down to a string using .ToString(). So, the obvious question: How would i generalize this with generics? The following doesn't work because the C# parser interprets ExprT (a generic type) instead of (operator Expr)T (a generics parameter on the method operator Expr.public static implicit operator ExprT(T expr){ return new Expr(expr.ToString());} Similarly, is there way to specify a generic constructor that takes on arbitrary paramters? public ExprT(T expr){data =expr.ToString();}

    DB:2.24:C# Generics On Conversion Operator And Constructor cx

    That makes sense, thanks. My question was of exploratory nature in a project that is using C# as a "scripting language."
    Brian

  • RELEVANCY SCORE 2.24

    DB:2.24:Adf On Weblogic 10.3.3 s8


    I'm trying to deploy adf application on weblogic 10.3.3
    I've instaled weblogic, use instruction in Installing ADF 11.1.1.3 Runtime into WebLogic 11gR1 Patchset 2 (10.3.3) [ID 1094153.1] from otn to install adf libraries
    but when I deploy my application and started it, after loggin (some action done in backing bean) I get

    javax.faces.el.EvaluationException: java.lang.NoClassDefFoundError: javax/faces/context/FacesContext.....

    don't konw where to start
    any ideas?

    DB:2.24:Adf On Weblogic 10.3.3 s8

    yes I did
    i think it must be sometihin with deploymnet because I've changed weblogic-applicaiton.xml (deleting listeners) because if I don't do so I can't deploy
    Can I do that?

  • RELEVANCY SCORE 2.24

    DB:2.24:Openscript:Adf Solve Problem 9z


    Should load testing scripts for testing ADF faces application with OpenScript work correctly (OpenScript Version: 9.1.0.0 Production Build ID: 2.4.0.0182).

    {
    http.solve(
    "javax.faces.ViewState_1",
    "input type=\"hidden\" name=\"javax\\.faces\\.ViewState\" value=\"(.+?)\"",
    "", false, Source.Html, 0, EncodeOptions.None);
    http.solve("_adf.ctrl-state_1",
    "\\?_adf\\.ctrl-state=(.+?)\"", "", false,
    Source.Html, 0, EncodeOptions.None);
    }

    the error is
    Failed to solve variable javax.faces.ViewState_1 using regex input type="hidden" name="javax\.faces\.ViewState" value="(.+?)"

    oracle.oats.scripting.modules.http.api.exceptions.SolveException: Failed to solve variable javax.faces.ViewState_1 using regex input type="hidden" name="javax\.faces\.ViewState" value="(.+?)"
    at oracle.oats.scripting.modules.http.api.exceptions.SolveException.createSolveExceptionRegex(SolveException.java:63)
    at oracle.oats.scripting.modules.http.api.HTTPService.solve(HTTPService.java:1784)
    at script.run(script.java:209)
    at oracle.oats.scripting.modules.basic.api.IteratingVUser.run(IteratingVUser.java:311)
    at oracle.oats.scripting.modules.basic.api.internal.IteratingAgent.run(IteratingAgent.java:631)
    at java.lang.Thread.run(Thread.java:619)

    DB:2.24:Openscript:Adf Solve Problem 9z

    Should load testing scripts for testing ADF faces application with OpenScript work correctly (OpenScript Version: 9.1.0.0 Production Build ID: 2.4.0.0182).

    {
    http.solve(
    "javax.faces.ViewState_1",
    "input type=\"hidden\" name=\"javax\\.faces\\.ViewState\" value=\"(.+?)\"",
    "", false, Source.Html, 0, EncodeOptions.None);
    http.solve("_adf.ctrl-state_1",
    "\\?_adf\\.ctrl-state=(.+?)\"", "", false,
    Source.Html, 0, EncodeOptions.None);
    }

    the error is
    Failed to solve variable javax.faces.ViewState_1 using regex input type="hidden" name="javax\.faces\.ViewState" value="(.+?)"

    oracle.oats.scripting.modules.http.api.exceptions.SolveException: Failed to solve variable javax.faces.ViewState_1 using regex input type="hidden" name="javax\.faces\.ViewState" value="(.+?)"
    at oracle.oats.scripting.modules.http.api.exceptions.SolveException.createSolveExceptionRegex(SolveException.java:63)
    at oracle.oats.scripting.modules.http.api.HTTPService.solve(HTTPService.java:1784)
    at script.run(script.java:209)
    at oracle.oats.scripting.modules.basic.api.IteratingVUser.run(IteratingVUser.java:311)
    at oracle.oats.scripting.modules.basic.api.internal.IteratingAgent.run(IteratingAgent.java:631)
    at java.lang.Thread.run(Thread.java:619)

  • RELEVANCY SCORE 2.24

    DB:2.24:Errors On Deploy d9



    I have been attempting to create a new Seam app based on the code generated by Seam. I then modified the code and pages, fleshed out the first page (a user login) and that part was working. Then when I tried to build the second page (the query/view results page), things when wrong:

    09:51:35,531 INFO [FacesConfigurator] Reading standard config org/apache/myfaces/resource/standard-faces-config.xml
    09:51:35,593 INFO [FacesConfigurator] Reading config jar:file:/C:/Dev/SeamDevelopment/jbossServer/server/default/lib/ui.jar!/META-INF/faces-config.xml
    09:51:37,359 INFO [FacesConfigurator] Reading config jar:file:/C:/Dev/SeamDevelopment/jbossServer/server/default/tmp/deploy/tmp8172DPSLicenseInquiry.ear-contents/jboss-seam.jar!/META-INF/faces-config.xml
    09:51:37,375 INFO [FacesConfigurator] Reading config /WEB-INF/faces-config.xml
    09:51:37,421 ERROR [[/DPSLicenseInquiryWeb]] Exception sending context initialized event to listener instance of class org.apache.myfaces.webapp.StartupServletContextListener
    java.lang.NoClassDefFoundError: javax/el/ELException
    at org.apache.myfaces.application.ApplicationFactoryImpl.init(ApplicationFactoryImpl.java:42)

    DB:2.24:Errors On Deploy d9


    Found several messages online but all were unanswered or were dead-ends.BUT, I found one that mentioned having to create a /META-DATA/services folder with these files that referenced the actual class names that implemented the Sun face classes. Got those built and things got a little better.But what's really annoying, is that another message gave me a hint that worked:deploy\jbossweb-tomcat55.sar\jsf-libsI had to put, all the JSF related files in that folder for things to come together. That included: commons-*, jsf-facelets, jsf-impl, jstl, myfaces-*Don't know WHY but at least I'm beyond that problem.

  • RELEVANCY SCORE 2.24

    DB:2.24:Adf Faces - Access To Content In Web-Inf Directory d1


    Hello,
    I create simple JSF application that use ADF Faces and deploy it to Oracle iAS. But why can i also access files in WEB-INF directory? For example, the following URL - http://myserver.si/MyApp/faces/WEB-INF/web.xml - will return the content of XML file. By my knowledge of J2EE architecture, access to this directory should be forbidden.
    Should I set some parameter on javax.faces.webapp.FacesServlet servlet filter to prevent access to WEB-INF directory? Thank you for help.

    Google also found the following links:
    - http://mail-archives.apache.org/mod_mbox/myfaces-dev/200602.mbox/%3C1673931445.1139290498508.JavaMail.jira@ajax.apache.org%3E
    - http://svn.apache.org/viewcvs.cgi//myfaces/core/trunk/api/src/main/java/javax/faces/webapp/FacesServlet.java/?rev=375489view=diffr1=375489r2=375488p1=/myfaces/core/trunk/api/src/main/java/javax/faces/webapp/FacesServlet.javap2=/myfaces/core/trunk/api/src/main/java/javax/faces/webapp/FacesServlet.java

    Regards,
    Matic

    DB:2.24:Adf Faces - Access To Content In Web-Inf Directory d1

    Hi,

    the reason for this is that the WEB-INF directory is protected against direct client (browser) requests. Using Faces, the JSF servlet performs this access as a server side forward request in which case there is no container-managed protection.

    If you want to avoid this then you can write a servlet filter in fron of JSF in which you check for any occurences of directories you want to prohibit access to.

    Its not a bug, its the way J2EE is designed ;-(

    Frank

  • RELEVANCY SCORE 2.24

    DB:2.24:Re: Java.Lang.Noclassdeffounderror: Javax/Faces/Context/Facescontext jj


    I was trying to access the FacesContext from the constructor of my bean Now when I try to access from a method I am getting the error

    Root cause of ServletException.
    java.lang.LinkageError: loader constraint violation: when resolving method "org.springframework.web.jsf.FacesContextUtils.getWebApplicationContext(Ljavax/faces/context/FacesContext;)Lorg/springframework/web/context/WebApplicationContext;" the class loader (instance of weblogic/utils/classloaders/ChangeAwareClassLoader) of the current class, br/imediato/ireciclados/controller/ResumoBean, and the class loader (instance of sun/misc/Launcher$AppClassLoader) for resolved class, org/springframework/web/jsf/FacesContextUtils, have different Class objects for the type javax/faces/context/FacesContext used in the signature
    at br.imediato.ireciclados.controller.ResumoBean.getListaAlertasNaoLidos(ResumoBean.java:27)

    In my facesConfig.xml

    el-resolverorg.springframework.web.jsf.el.WebApplicationContextFacesELResolver/el-resolver

    DB:2.24:Re: Java.Lang.Noclassdeffounderror: Javax/Faces/Context/Facescontext jj

    Guys, I think the problem is related to the configuration of the adf faces + spring.
    For some reason the spring is not having access to the FacesContext.
    It would be a classloader problem?

    I'm using SpringBeanFacesELResolver to manage my BackingBeans.

    java.lang.NoClassDefFoundError: javax/faces/context/FacesContext
    at org.springframework.web.jsf.el.SpringBeanFacesELResolver.getWebApplicationContext(SpringBeanFacesELResolver.java:89)
    at org.springframework.web.jsf.el.SpringBeanFacesELResolver.getBeanFactory(SpringBeanFacesELResolver.java:78)
    at org.springframework.beans.factory.access.el.SpringBeanELResolver.getValue(SpringBeanELResolver.java:49)
    at com.sun.faces.el.DemuxCompositeELResolver._getValue(DemuxCompositeELResolver.java:176)
    at com.sun.faces.el.DemuxCompositeELResolver.getValue(DemuxCompositeELResolver.java:203)
    at com.sun.el.parser.AstIdentifier.getValue(Unknown Source)
    at com.sun.el.parser.AstValue.getValue(Unknown Source)
    at com.sun.el.ValueExpressionImpl.getValue(Unknown Source)
    at com.sun.faces.facelets.el.TagValueExpression.getValue(TagValueExpression.java:109)
    at com.sun.faces.application.ApplicationImpl.createComponentApplyAnnotations(ApplicationImpl.java:1889)
    at com.sun.faces.application.ApplicationImpl.createComponent(ApplicationImpl.java:1109)
    at com.sun.faces.facelets.tag.jsf.ComponentTagHandlerDelegateImpl.createComponent(ComponentTagHandlerDelegateImpl.java:511)
    at com.sun.faces.facelets.tag.jsf.ComponentTagHandlerDelegateImpl.apply(ComponentTagHandlerDelegateImpl.java:157)
    at javax.faces.view.facelets.DelegatingMetaTagHandler.apply(DelegatingMetaTagHandler.java:120)
    at javax.faces.view.facelets.DelegatingMetaTagHandler.applyNextHandler(DelegatingMetaTagHandler.java:137)
    at oracle.adfinternal.view.faces.facelets.rich.PopupHandler.applyNextHandler(PopupHandler.java:84)
    at com.sun.faces.facelets.tag.jsf.ComponentTagHandlerDelegateImpl.apply(ComponentTagHandlerDelegateImpl.java:184)
    at javax.faces.view.facelets.DelegatingMetaTagHandler.apply(DelegatingMetaTagHandler.java:120)
    at javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:98)
    at javax.faces.view.facelets.DelegatingMetaTagHandler.applyNextHandler(DelegatingMetaTagHandler.java:137)
    at com.sun.faces.facelets.tag.jsf.ComponentTagHandlerDelegateImpl.apply(ComponentTagHandlerDelegateImpl.java:184)
    at javax.faces.view.facelets.DelegatingMetaTagHandler.apply(DelegatingMetaTagHandler.java:120)
    at com.sun.faces.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:93)
    at com.sun.faces.facelets.tag.jsf.core.FacetHandler.apply(FacetHandler.java:104)
    at javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:98)
    at javax.faces.view.facelets.DelegatingMetaTagHandler.applyNextHandler(DelegatingMetaTagHandler.java:137)
    at com.sun.faces.facelets.tag.jsf.ComponentTagHandlerDelegateImpl.apply(ComponentTagHandlerDelegateImpl.java:184)
    at javax.faces.view.facelets.DelegatingMetaTagHandler.apply(DelegatingMetaTagHandler.java:120)
    at javax.faces.view.facelets.DelegatingMetaTagHandler.applyNextHandler(DelegatingMetaTagHandler.java:137)
    at com.sun.faces.facelets.tag.jsf.ComponentTagHandlerDelegateImpl.apply(ComponentTagHandlerDelegateImpl.java:184)
    at javax.faces.view.facelets.DelegatingMetaTagHandler.apply(DelegatingMetaTagHandler.java:120)