Error in Incorporating jsf 1.0.1

I get the following error when i incorporate jsf_1.0.1 with IBM's JSF implementation and apache faces 1.3.
[7/12/07 20:13:00:188 IST] 6a841920 WebContainer  W SRVE0017W: Web Group not found: default_host/ProjectOne
[7/12/07 20:13:00:188 IST] 6a841920 OSEListenerDi E PLGN0021E: Servlet Request Processor Exception: Virtual Host/WebGroup Not Found : The web group default_host/ProjectOne has not been definedMy web.xml looks like this,
<?xml version="1.0" encoding="UTF-8"?>
<!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 id="WebApp_ID">
     <display-name>ProjectOne</display-name>
     <context-param>
          <param-name>com.ibm.ws.jsf.JSP_UPDATE_CHECK</param-name>
          <param-value>true</param-value>
          <description>Monitors Faces JSP files for modifications and synchronizes a running server with
the changes without restarting the server.  If this parameter is set to false or
removed from the deployment descriptor, any changes made to Faces JSP files may
not be seen by the server until it is restarted.  This parameter is usually set
to true while the Faces JSP files are being developed and debugged in order to
improve the performance of the development environment.</description>
     </context-param>
     <context-param>
          <param-name>com.ibm.ws.jsf.LOAD_FACES_CONFIG_AT_STARTUP</param-name>
          <param-value>true</param-value>
          <description></description>
     </context-param>
        <context-param>
     <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
     <param-value>client</param-value>
   </context-param>
<!-- Filter for myfaces -->
     <filter>
          <filter-name>MyFacesExtensionsFilter</filter-name>
          <filter-class>
               org.apache.myfaces.webapp.filter.ExtensionsFilter
          </filter-class>
          <init-param>
               <param-name>maxFileSize</param-name>
               <param-value>20m</param-value>
          </init-param>
     </filter>
<filter-mapping>
          <filter-name>MyFacesExtensionsFilter</filter-name>
          <url-pattern>/faces/*</url-pattern>
     </filter-mapping>
     <filter-mapping>
          <filter-name>MyFacesExtensionsFilter</filter-name>
          <url-pattern>*.faces</url-pattern>
     </filter-mapping>
     <filter-mapping>
          <filter-name>MyFacesExtensionsFilter</filter-name>
          <servlet-name>Faces Servlet</servlet-name>
     </filter-mapping>
<!-- Filter for myfaces -->
     <listener>
          <listener-class>com.sun.faces.config.ConfigureListener</listener-class>
     </listener>
     <servlet id="Servlet_1116522893310">
          <servlet-name>JS Resource Servlet</servlet-name>
          <servlet-class>
          com.ibm.faces.webapp.JSResourceServlet</servlet-class>
          <load-on-startup>-1</load-on-startup>
     </servlet>
     <servlet id="Servlet_1116522893510">
          <servlet-name>Faces Servlet</servlet-name>
          <servlet-class>
          javax.faces.webapp.FacesServlet</servlet-class>
          <load-on-startup>-1</load-on-startup>
     </servlet>
     <servlet>
          <servlet-name>ProjectOne</servlet-name>
          <display-name>ProjectOne</display-name>
          <description></description>
          <servlet-class>
          com.package.servlets.ProjectOne</servlet-class>
     </servlet>
     <servlet-mapping>
          <servlet-name>JS Resource Servlet</servlet-name>
          <url-pattern>/.ibmjsfres/*</url-pattern>
     </servlet-mapping>
     <servlet-mapping>
          <servlet-name>Faces Servlet</servlet-name>
          <url-pattern>/faces/*</url-pattern>
     </servlet-mapping>
     <servlet-mapping>
          <servlet-name>Faces Servlet</servlet-name>
          <url-pattern>*.faces</url-pattern>
     </servlet-mapping>
     <servlet-mapping>
          <servlet-name>ProjectOne</servlet-name>
          <url-pattern>/ProjectOne</url-pattern>
     </servlet-mapping>
     <welcome-file-list>
          <welcome-file>index.html</welcome-file>
          <welcome-file>index.htm</welcome-file>
          <welcome-file>index.jsp</welcome-file>
          <welcome-file>default.html</welcome-file>
          <welcome-file>default.htm</welcome-file>
          <welcome-file>default.jsp</welcome-file>
     </welcome-file-list>
     <resource-ref id="ResourceRef_1117563615686">
          <description></description>
          <res-ref-name>jdbc/ProjectOne</res-ref-name>
          <res-type>java.lang.Object</res-type>
          <res-auth>Container</res-auth>
          <res-sharing-scope>Shareable</res-sharing-scope>
     </resource-ref>
</web-app>Yes, i use RAD 6.0 for development. I would request someone to respond. I have posted the same problem in the IBM developer forum and havent got a reply for a while.
thanks,
Dilip

Yes, i had changed my project name to projectOne for anonymity reasons. I guess it may not be a big issue if i do post my actual web.xml.
My previous experience with IDE's has been with eclipse where i used JSF_1.0.1 and for myfaces support i just added the tomahawk_1.1.3.jar in the web-apps lib. I never added any filters to my web.xml and it worked just fine.
This is the first time that i am working on RAD (or IBM related IDE) and i see that they use 3 jsf jars namely jsf-api.jar, jsf-impl.jar and jsf-ibm.jar. What i want to know is what version of JSF(RI implementation) is jsf-ibm.jar based on?
One another problem that i had was that h:commandLink wasnt working inside a h:dataTable so i replaced the two jsf jars (api and impl) with the 1.0.1 version and it worked fine. This had to be done also to enable using myfaces (as myfaces tomahawk1.1.3 is compatible with jsf1.0.1).
I am quite confused and would want a proper way to install the latest myfaces component in my RAD.
Here's my original web.xml,
<?xml version="1.0" encoding="UTF-8"?>
<!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 id="WebApp_ID">
     <display-name>TECC_ExpenseReports</display-name>
     <context-param>
          <param-name>com.ibm.ws.jsf.JSP_UPDATE_CHECK</param-name>
          <param-value>true</param-value>
          <description>Monitors Faces JSP files for modifications and synchronizes a running server with
the changes without restarting the server.  If this parameter is set to false or
removed from the deployment descriptor, any changes made to Faces JSP files may
not be seen by the server until it is restarted.  This parameter is usually set
to true while the Faces JSP files are being developed and debugged in order to
improve the performance of the development environment.</description>
     </context-param>
     <context-param>
          <param-name>com.ibm.ws.jsf.LOAD_FACES_CONFIG_AT_STARTUP</param-name>
          <param-value>true</param-value>
          <description></description>
     </context-param>
        <context-param>
     <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
     <param-value>client</param-value>
   </context-param>
<!-- Filter for myfaces -->
     <filter>
          <filter-name>MyFacesExtensionsFilter</filter-name>
          <filter-class>
               org.apache.myfaces.webapp.filter.ExtensionsFilter
          </filter-class>
          <init-param>
               <param-name>maxFileSize</param-name>
               <param-value>20m</param-value>
          </init-param>
     </filter>
<filter-mapping>
          <filter-name>MyFacesExtensionsFilter</filter-name>
          <url-pattern>/faces/*</url-pattern>
     </filter-mapping>
     <filter-mapping>
          <filter-name>MyFacesExtensionsFilter</filter-name>
          <url-pattern>*.faces</url-pattern>
     </filter-mapping>
     <filter-mapping>
          <filter-name>MyFacesExtensionsFilter</filter-name>
          <servlet-name>Faces Servlet</servlet-name>
     </filter-mapping>
<!-- Filter for myfaces -->
     <listener>
          <listener-class>com.sun.faces.config.ConfigureListener</listener-class>
     </listener>
     <servlet id="Servlet_1116522893310">
          <servlet-name>JS Resource Servlet</servlet-name>
          <servlet-class>
          com.ibm.faces.webapp.JSResourceServlet</servlet-class>
          <load-on-startup>-1</load-on-startup>
     </servlet>
     <servlet id="Servlet_1116522893510">
          <servlet-name>Faces Servlet</servlet-name>
          <servlet-class>
          javax.faces.webapp.FacesServlet</servlet-class>
          <load-on-startup>-1</load-on-startup>
     </servlet>
     <servlet>
          <servlet-name>TECC</servlet-name>
          <display-name>TECC</display-name>
          <description></description>
          <servlet-class>
          com.pkg.tecc.servlets.TECC</servlet-class>
     </servlet>
     <servlet-mapping>
          <servlet-name>JS Resource Servlet</servlet-name>
          <url-pattern>/.ibmjsfres/*</url-pattern>
     </servlet-mapping>
     <servlet-mapping>
          <servlet-name>Faces Servlet</servlet-name>
          <url-pattern>/faces/*</url-pattern>
     </servlet-mapping>
     <servlet-mapping>
          <servlet-name>Faces Servlet</servlet-name>
          <url-pattern>*.faces</url-pattern>
     </servlet-mapping>
     <servlet-mapping>
          <servlet-name>TECC</servlet-name>
          <url-pattern>/TECC</url-pattern>
     </servlet-mapping>
     <welcome-file-list>
          <welcome-file>index.html</welcome-file>
          <welcome-file>index.htm</welcome-file>
          <welcome-file>index.jsp</welcome-file>
          <welcome-file>default.html</welcome-file>
          <welcome-file>default.htm</welcome-file>
          <welcome-file>default.jsp</welcome-file>
     </welcome-file-list>
     <resource-ref id="ResourceRef_1117563615686">
          <description></description>
          <res-ref-name>jdbc/TECC</res-ref-name>
          <res-type>java.lang.Object</res-type>
          <res-auth>Container</res-auth>
          <res-sharing-scope>Shareable</res-sharing-scope>
     </resource-ref>
</web-app>hope i have made myself clear.
Dilip

Similar Messages

  • How to erase error message in jsf with facelets

    hi,
    I am using jsf 1.2 with facelets. we provided on required validation for menu in a page .if i click submit button with out giving required value, then corresponding message is showing.but after giving that required value that error message is not erasing from that page.
    but in my requirement when ever i gave that required value immedialty i want to erase that messge.
    In the following codec i click on submit button without selecting Bank , then it will display error message like Select Bank .after that i selected bank but that message is not removing.
    so could any body suggest me where i did mistake and how to do for that requirement..... please hint me
    mypage.xhtml
    <h:selectOneMenu  id="dropDownBanksName"  value="#{cardPrintBean.bankId}"
                                         required="true"  requiredMessage=" * Select Bank " title="select bank"
                                         valueChangeListener="#{cardPrintBean.valueChange}">
                                            <f:selectItems value="#{cardPrintBean.banks}" noSelectionLabel="Please select"/>
                                       </h:selectOneMenu>          
                                       <h:message for="dropDownBanksName" errorStyle="color:red" />can any one please help me........
    thanks in advance

    gbabu wrote:
    I think by using javascript with DOM we can put alert's boxes .Uh, think?
    I wasn't talking about alerts. Alerts also have nothing to do with DOM.
    but how to erase that error message of JSF in XHTML pageI already answered that. If you just want plain code, you're here at the wrong place.
    Better learn Javascript and HTML DOM. w3schools has nice tutorials about that.
    [http://www.w3schools.com/JS/default.asp]
    [http://www.w3schools.com/HTMLDOM/default.asp]

  • Method expression syntax error in jsp jsf 2.0 eclipse

    hi i made a simple bean jsp project, n ussed el to call methods in backing bean n show some text on the basis of method called....
    the project works perfectly fine, but theres a small issue, that eclipse jsp editor marks the expression as red n shows err.. the proj deploys fine on tomcat, n even works fine with expected results...
    wat should i do to fix that err show by eclipse...
    using eclipse helios with wtp 3.2, tomcat 7, jsf 2.0, el-api n el-impl 2.2 version jars in tomcat lib.... n latest jstl n standard jars...
    eg of jsp call -      <h:outputText value="#{myJsfBean.fetchCourseName(studentBean.courseId)}" />
    backing bean fn -
    public String fetchCourseName(Integer iCourseId){
              String theCourseName="";
              for(CourseBean aCourseBean:courseBeanList){
                   if(aCourseBean.getCourseId().equals(iCourseId)){
                        theCourseName=aCourseBean.getCourseName();
                        break;
              return theCourseName;
    jsp editor show err - Multiple annotations found at this line:
         - Syntax error in EL
         - Expression must be a value expression but is a method
         expression
    for "#{myJsfBean.fetchCourseName(studentBean.courseId)}" part of the expression
    its a trivial issue i think but annoying,, tried to search alot cudnt fix it....
    plz help

    my guess is that the project is not setup as being a JEE6 project and is being validated it as if it is a JEE5 application; the ability to be able to call methods with parameters through an EL expression is a new feature of JEE6 (or to be more precise: the el 2.2 API).
    Perhaps you can specify in your project properties that this is in fact a JEE6 project? Eclipse Helios should support JSF 2.0 out of the box.

  • Error while deploying jsf in jboss

    15:27:16,065 INFO [TomcatDeployer] deploy, ctxPath=/jseface, warUrl=file:/Volumes/Development/jboss/server/default/tmp/deploy/tmp62404jseface.war/
    15:27:17,278 INFO [FacesConfigurator] Reading standard config org/apache/myfaces/resource/standard-faces-config.xml
    15:27:17,476 INFO [FacesConfigurator] Reading config jar:file:/Volumes/Development/jboss/server/default/tmp/deploy/tmp62343myfaces-impl.jar!/META-INF/faces-config.xml
    15:27:17,545 INFO [FacesConfigurator] Reading config jar:file:/Volumes/Development/jboss/server/default/tmp/deploy/tmp62345myfaces.jar!/META-INF/faces-config.xml
    15:27:17,615 INFO [FacesConfigurator] Reading config jar:file:/Volumes/Development/jboss/server/default/tmp/deploy/tmp62404jseface.war/WEB-INF/lib/tomahawk-1.1.3.jar!/META-INF/faces-config.xml
    15:27:17,700 INFO [FacesConfigurator] Reading config /WEB-INF/faces-config.xml
    15:27:17,744 INFO [FacesConfigurator] Starting up MyFaces-package : myfaces-api in version : 1.1.5 from path : file:/Volumes/Development/jboss/server/default/tmp/deploy/tmp62404jseface.war/WEB-INF/lib/myfaces-api-1.1.5.jar
    15:27:17,745 INFO [FacesConfigurator] Starting up MyFaces-package : myfaces-impl in version : 1.1.5 from path : file:/Volumes/Development/jboss/server/default/tmp/deploy/tmp62404jseface.war/WEB-INF/lib/myfaces-impl-1.1.5.jar
    15:27:17,746 INFO [FacesConfigurator] MyFaces-package : tomahawk-sandbox not found.
    15:27:17,759 INFO [FacesConfigurator] Starting up MyFaces-package : tomahawk in version : 1.1.3 from path : file:/Volumes/Development/jboss/server/default/tmp/deploy/tmp62404jseface.war/WEB-INF/lib/tomahawk-1.1.3.jar
    15:27:17,918 WARN [LocaleUtils] Locale name in faces-config.xml null or empty, setting locale to default locale : en_US
    15:27:18,689 ERROR [FacesConfigurator] failed to configure class org.apache.myfaces.custom.rssticker.HtmlRssTickerRenderer
    java.lang.ClassCastException
    at org.apache.myfaces.config.FacesConfigurator.configureRenderKits(FacesConfigurator.java:754)
    at org.apache.myfaces.config.FacesConfigurator.configure(FacesConfigurator.java:149)
    at org.apache.myfaces.webapp.StartupServletContextListener.initFaces(StartupServletContextListener.java:68)
    at org.apache.myfaces.webapp.StartupServletContextListener.contextInitialized(StartupServletContextListener.java:51)
    at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3669)
    at org.apache.catalina.core.StandardContext.start(StandardContext.java:4104)
    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
    ..............and so on
    why is this happening

    Hi,
    Make sure you have all the JSF libraries in WEB-INF/lib directory..

  • Error  while parsing JSF jspx page when including javascript  loops

    Hi All,
    I have a jspx document which contains jsf tags including trinidad tags. I have added a javascript function in the page, which contains a for loop statement, however when I run the page I get an error
    com.sun.facelets.FaceletException: Error Parsing /xAdvisorWeb/bundles/receivetask/manageinbox.jspx: Error Traced[line: 48] The content of elements must consist of well-formed character data or markup.
    at com.sun.facelets.compiler.SAXCompiler.doCompile(SAXCompiler.java:234)
    at com.sun.facelets.compiler.Compiler.compile(Compiler.java:104)
    at com.sun.facelets.impl.DefaultFaceletFactory.createFacelet(DefaultFaceletFactory.java:192)
    at com.sun.facelets.impl.DefaultFaceletFactory.getFacelet(DefaultFaceletFactory.java:141)
    at com.sun.facelets.impl.DefaultFaceletFactory.getFacelet(DefaultFaceletFactory.java:93)
    at com.sun.facelets.FaceletViewHandler.buildView(FaceletViewHandler.java:503)
    at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:553)
    at org.apache.myfaces.trinidadinternal.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:178)
    at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:384)
    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:138)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:995)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:930)
    at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:145)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._invokeDoFilter(TrinidadFilterImpl.java:326)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:290)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:213)
    at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:90)
    at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:190)
    at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:130)
    at com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:87)
    at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:761)
    at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:673)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:498)
    at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:464)
    at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:90)
    at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:744)
    Please note that normal javascript code has worked in my jsf page, this problem only occurs only when I add for loop or while loop in the javascript function. Can we not add javascript loops in a jsf page? Is there something else I need to include?
    This is the relevant code snippet :
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0"
    xmlns:ui="http://java.sun.com/jsf/facelets"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:tr="http://myfaces.apache.org/trinidad"
    xmlns:ch="http://www.chordiant.com/jsf"
    xmlns:chrd="http://chordiant.com/jsf/chrd">
    <f:view locale="#{preferLocale.locale}">
    <f:verbatim escape="true">
    <script>
    function validateInput(){
    for(int i=0;i<3;i++)
    alert('Hi');
    return false;
    </script>
    </f:verbatim>
    <tr:commandLink styleClass="ttmBtnCmdLink" onclick="return validateInput();"
    action="#{manageInbox.executeTaskForAssignedWorkItems}">
    <tr:outputText value="#{msgs.execute_btn}"
    styleClass="ttmBtnOutTxt" />
    </tr:commandLink>
    Any help will be much appreciated.
    Thanks in advance,
    Debajyoti

    M-Y wrote:
    replace "<" with "& l t ;"
    remove spaces in "& l t ;" when u paste it in ur code
    in my previous 2 replies i entered it with out spaces and it was getting converted to "<"The forum engine parses HTML entities. So just replace the & by its HTML entity &amp; and it will work: &lt;.
    But no, this is not going to work. JavaScript doesn't recognize HTML entities as operators.
    Follow the suggestion rlubke gave. Or, even better, put all Javascripts in its own .js file and include this file in the HTML head.

  • Error while running JSF program in netbeans ide

    Hello guys,
    I was working with JSF on Netbeans 6.1 IDE. but was unable to run the application and got the following error :
    " javax.servlet.exception:PWC 1244: servlet execution threw an exception"
    "java.lang.NoSuchFieldError:IS_UNIT_TEST_MODE".
    However, this error ocurred only with JSF framework projects and not for JSP ones. So, the JSP files are built and run successfully.
    Please help me out with this.

    says it all really. You're trying to access something that doesn't exist, either explicitly or implicitly.
    Don't do that.

  • Validation error message in JSF 1.2

    I am testing my Web application inside Tomcat 6.0.2 and using JSF 1.2. I was surprised to see that validation error messages do not only display the custom error message, but also the id tag and a "Validation Error: " text. For instance, if an input text component has the required property set to true and the user does not fill in value, the following error message will be displayed on page submiision: "hello:test: Validation Error: Value is required." instead of just "Value is required.". I am wondering if there is a way to silence the id tag and the "Validation Error: " text. hello:test id tag reflects the fact that the form has an id of "hello" and the input text component an id equal to "test".

    Hello
    I'm quite new to this technology. Would like to know how can we replace the 'annoying component id' with label while generationg validation/conversion error message.
    E.g:
    'for:compID' some error message
    must be formated as
    'compLabel' some error message
    I happened to know that this feature is supported in JSF 1.2 impl. But didn't work for me with Sun RI.Can any body give me some sample code snippet for the same
    Thanks
    Jobinesh

  • Getting error in simple Jsf-Spring Integration

    Hi,
    I am getting error in setting class attribute through Spring when I am integrating spring1.2 and jsf 1.1. Alone JSF is working fine.
    The error I am getting is
    Class org.springframework.web.jsf.DelegatingVariableResolver is no javax.faces.el.VariableResolverI m using JSF1.1, Spring 1.2 and jdk 1.4
    How I did is I added a class First.java initialized by application.xml as follows
    <beans>
         <bean id="first" class="com.tst.beans.First" >
         <property name="name">
              <value type="java.lang.String">abc</value>
         </property></bean>
    </beans>I have added Delegating Variable resolver and other stuff in faces-config.xml as follows
        <application>
    <variable-resolver>org.springframework.web.jsf.DelegatingVariableResolver</variable-resolver>
          <locale-config>
            <default-locale>en</default-locale>
          </locale-config>
          <message-bundle>com.Messages</message-bundle>
        </application>
         <navigation-rule>
              <from-view-id>/third.jsp</from-view-id>
         </navigation-rule>
         <managed-bean>
              <managed-bean-name>secBean</managed-bean-name>
            <managed-bean-class>com.tst.beans.SecBean</managed-bean-class>
              <managed-bean-scope>session</managed-bean-scope>
              <managed-property>
                   <property-name>ft</property-name>
                   <value>#{first}</value>
              </managed-property>
         </managed-bean>In web.xml I did the following change for Spring
      <context-param>
        <param-name>javax.faces.CONFIG_FILES</param-name>
        <param-value>/WEB-INF/faces-config.xml</param-value>
      </context-param>
          <!--Loads Spring application context upon application startup.-->
      <context-param>
        <param-name>contextConfigLocation</param-name>
        <param-value>/WEB-INF/applicationContext.xml</param-value>
    </context-param>
      <servlet>
        <servlet-name>Faces Servlet</servlet-name>
        <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
        <load-on-startup>1</load-on-startup>
      </servlet>
           <servlet>
                 <servlet-name>SpringContextServlet</servlet-name>
                    <servlet-class>org.springframework.web.context.ContextLoaderServlet</servlet-class>      
                <load-on-startup>1</load-on-startup>
         </servlet>
      I added this first class in backing bean as a property. My faces-config.xml code is
              <managed-bean>
              <managed-bean-name>EducInfo</managed-bean-name>
              <managed-bean-class>
                   com.view.beans.StudentEducInfo
              </managed-bean-class>
                    <managed-property>
                   <property-name>ft</property-name>
                   <value>#{first}</value>
              </managed-property>and in JSP page, I called the managed property as
    <h:outputText value="#{secBean.ft.name}" ></h:outputText>Any pointers? Any workaround would also be highly appreciated
    Regards,
    Arsalan

    There is a working apache example in the SVN...might be worth taking a look at that.

  • Error in accessing JSF app on Weblogic 8.1. Fine on Tomcat 5.1

    I am deploying a simple JSF application on Weblogic 8.1. When I try to access the application I am getting below error:
    javax.faces.FacesException: org/apache/myfaces/el/ValueBindingImpl
         at org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(Ljava.lang.String;)V(ServletExternalContextImpl.java:422)
         at org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(Ljavax.faces.context.FacesContext;Ljavax.faces.component.UIViewRoot;)V(JspViewHandlerImpl.java:234)
         at org.apache.myfaces.lifecycle.LifecycleImpl.render(Ljavax.faces.context.FacesContext;)V(LifecycleImpl.java:384)
         at javax.faces.webapp.FacesServlet.service(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;)V(FacesServlet.java:138)
         at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run()Ljava.lang.Object;(ServletStubImpl.java:996)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;Lweblogic.servlet.internal.FilterChainImpl;)V(ServletStubImpl.java:419)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;)V(ServletStubImpl.java:315)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run()Ljava.lang.Object;(WebAppServletContext.java:6452)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Lweblogic.security.subject.AbstractSubject;Ljava.security.PrivilegedAction;)Ljava.lang.Object;(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(Lweblogic.security.acl.internal.AuthenticatedSubject;Lweblogic.security.acl.internal.AuthenticatedSubject;Ljava.security.PrivilegedAction;)Ljava.lang.Object;(SecurityManager.java:118)
         at weblogic.servlet.internal.WebAppServletContext.invokeServlet(Lweblogic.servlet.internal.ServletRequestImpl;Lweblogic.servlet.internal.ServletResponseImpl;)V(WebAppServletContext.java:3661)
         at weblogic.servlet.internal.ServletRequestImpl.execute(Lweblogic.kernel.ExecuteThread;)V(ServletRequestImpl.java:2630)
         at weblogic.kernel.ExecuteThread.execute(Lweblogic.kernel.ExecuteRequest;)V(ExecuteThread.java:219)
         at weblogic.kernel.ExecuteThread.run()V(ExecuteThread.java:178)
         at java.lang.Thread.startThreadFromVM(Ljava.lang.Thread;)V(Unknown Source)
    Caused by: javax.servlet.ServletException: org/apache/myfaces/el/ValueBindingImpl
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;Lweblogic.servlet.internal.FilterChainImpl;)V(ServletStubImpl.java:469)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;)V(ServletStubImpl.java:315)
         at weblogic.servlet.internal.RequestDispatcherImpl.forward(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;)V(RequestDispatcherImpl.java:312)
         at org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(Ljava.lang.String;)V(ServletExternalContextImpl.java:416)
         ... 14 more
    However, when I deploy the same application on Tomcat 5.5, the application works just fine.
    Any pointers will be welcome. Thanks for the help.

    Make sure you don't include any JSF implementation jars in your web application.

  • How to handle error pages in JSF

    Hii,
    I am facing problem in JSF handling server side errors like faces exception.
    For Ex; if i have a JSF screen,if i enter invalid data it will show error in the same page if i use messages tag,but i need to display errors in another page like error pages.
    i tried to do as we do in JSP,but facesServlet is not supporting.
    i am very thankful if anyone can help.

    How about asking in the JSF forum where the experts are?

  • Error Handling for JSF!

    Hi, i have a third party jar file, and in some code of it, methods are not declared to throw any exception, but actually, in the method, there is a try-catch block, and in the catch block, it does some logging work, and then just throw the exception directly.
    then comes the problem, when i am using that code, sometimes exceptions are thrown,but in my code i can not catch that exception directly, as the methods in the classes in the jar file are not declared to throw the exception. So an error page full of stack trace messages is displayed, but i don't want this, for it is rather ugly and useless for client.
    So is there some way that i could do some config work or some otherways to direct the page to another page writen by me when errors occur? and maybe i can judge what kind of error happened, and display the proper message for client?
    Best Regards:)
    Robin

    Hello
    You are using JSF but then also you are free to use JSP code in your page. You can define the <@ page errorPage="someFile.htm"> as an error page, so it will redirect every time to this page.
    I hope this will work for you.
    Best of luck!
    -Dhanya

  • 'session' is undefined - javascript error in my JSF/JSP page

    I have the following JSF/JSP page. In onLoad() I invoke a javascript function func(). In this method, I attempt to lookup an attribute from the Http Session. When I run my application, my page is loaded with but the icon on the lower left corner of the browser indicated that there was an error. When I viewed the error, it read : 'session' is undefined.
    The 'session' variable is available in a JSP page.
    So why does my code not work from within a JSF application.
    <?xml version="1.0" encoding="UTF-8"?>
    <jsp:root version="1.2" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:jsp="http://java.sun.com/JSP/Page"
    xmlns:ui="http://www.sun.com/web/ui">
        <jsp:directive.page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"/>   
        <f:view>
            <ui:page binding="#{bean.page1}" id="page1">
                <ui:html binding="#{bean.html1}" id="html1">
                    <ui:head binding="#{bean.head1}" id="head1">
                        </ui:head>
                    <ui:body binding="#{bean.body1}" onLoad="func()" id="body1" style="-rave-layout: grid">
                        <ui:form binding="#{bean.form1}" id="form1">                       
                            <h:inputText binding="#{bean.inputText}" id="inputText"/>
                        </ui:form>
                    </ui:body>
                </ui:html>
            </ui:page>
        </f:view>
        <script type="text/javascript">
            function func(){                  
                    alert("in func()");
                    var y = session.getAttribute("test");
                    alert(y);
        </script>
    </jsp:root>thanks,
    tsc

    Because :
    Session.getAtrribute is java-code that can only run on the server
    and
    var y = session.getAttribute is javascript-code run on the client.

  • More strange error jsf1.2 (jsf-1.2_04-b01-RC1) and Tomcat 6.0.9

    Hi!
    This error is not a good one. I'm note sure I underdstand it, Do I have a conflict somewhere? I have downloaded jsf-1.2_04-b01-RC1 and jstl1.2.jar. I'm using java 6 and linux.
    Anyone have any hints?
    2007-feb-23 22:46:49 org.apache.catalina.core.StandardContext listenerStart
    ALLVARLIG: 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/apache/catalina/loader/WebappClassLoader) of the current class, com/sun/faces/config/ConfigureListener, and the class loader (instance of org/apache/catalina/loader/StandardClassLoader) 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:1642)
         at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:455)
         at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3827)
         at org.apache.catalina.core.StandardContext.start(StandardContext.java:4336)
         at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:760)
         at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:740)
         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:120)
         at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1306)
         at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1570)
         at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1579)
         at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1559)
         at java.lang.Thread.run(Thread.java:619)/Perty

    Hi.
    I had similar problem with the Tomcat 6.0.10 and JSF 1.1.
    As there is no answer to this thread I want to share the solution with others.
    In my case the problem gone after removing el-api.jar from the WEB-INF/lib directory of my webapp. Tomcat 6 already contains the el-api.jar in the lib directory.
    Also I do not know if it is the solusion for the JSF 1.2.

  • Unterminated String Constant error generated by JSF

    I'm getting the error in javascript and not being able to figure it out. It is caused by <h:outputLink> tag trying to load HTML page in IE6 browser.
    I'm attaching this page and hopefully someone would come up with a solution. Thanks a lot in advance.
    <head>
    <script type="text/javascript">
    function doPopup(value){
    popup = window.open("mqClientSetting.faces?applid="
    + value,"popup","height=605,width=620,toolbar=no,menubar=no,"
    + "scrollbars=yes");
    popup.focus();
    </script>
    <link href="styles.css" rel="stylesheet" type="text/css"/>
    <title>MQ Browser</title>
    </head>
    <table class="mqHeader">
    <tbody>
    <tr>
    <td><img src="/MqBrowser/IBM_logo.gif" /></td>
    <td><img src="/MqBrowser/shakehands.jpg" /></td>
    <td><img src="/MqBrowser/ABN_logo.gif" /></td>
    </tr>
    </tbody>
    </table>
    <hr>
    <body>
    <form id="j_id_id17" name="j_id_id17" method="post" action="/MqBrowser/mqClientApplications.faces" enctype="application/x-www-form-urlencoded">
    <input type="hidden" name="j_id_id17" value="j_id_id17" />
    <input type="hidden" name="javax.faces.ViewState" id="javax.faces.ViewState" value="j_id35:j_id36" />
    <div style="overflow:auto; width:100%; height:400px;" align="center">
    <table class="borders">
    <caption class="mqchanCaption">ABN AMRO business MQ applications</caption><thead>
    <tr>
    <th class="mqchanHeader" scope="col">Application</th>
    <th class="mqchanHeader" scope="col">Description</th>
    </tr>
    </thead>
    <tbody>
    <tr>
    <td><a href="# onclick="doPopup('
    CRIS');return false;">
    CRIS</a></td>
    <td>cris
    </td>
    </tr>
    <tr>
    <td><a href="#" onclick="doPopup('
    GLOBAL NETTING');return false;">
    GLOBAL NETTING</a></td>
    <td>TF
    </td>
    </tr>
    </tbody>
    </table>
    </div>
    </form>
    </body>

    <a href="#" onclick="doPopup('
    CRIS');return false;">
    <a href="#" onclick="doPopup('
    GLOBAL NETTING');return false;">Remove those linebreaks.
    This is likely just custom code and not generated by JSF (at least, I never heard of a Javascript doPopup() function in JSF). If it is actually generated by JSF, then rise a bugreport at the site of the component manfacturer.

  • Error when compiling JSF JSP

    I'm getting the following error when I try to compile an application containing a JSF JSP in JDeveloper 10.1.3. The error is:
    Error: java.lang.NoSuchMethodError: javax.servlet.jsp.tagext.TagAttributeInfo.<init>(Ljava/lang/String;ZLjava/lang/String;ZZ)V
    I've checked the files in the classpath and the TagAttributeInfo class is located in <install>/j2ee/home/lib/servlet.jar. I decompiled the class and it does have a constructor that takes (String, boolean, String, boolean, boolean).
    The only change I made between when things worked and now is that I tried to add a JSF JSP that used the ADF classes. But once I started getting this compilation error, I removed the ADF classes from the project, so they shouldn't be causing any problems anymore.
    Any ideas what's wrong?
    Thanks

    Hello,
    May be that your classpath doesn't include that location ?
    Have you tried to put the TagAttributeInfo.class file into your current folder
    (or may be in ..\<your_project>\Classes\.. path ) ?
    To check if your classpath does actually include your path, you could run:
    <%@ page contentType="text/html;charset=windows-1252"%>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
    <title>Dummy JSP-CLASSPATH</title>
    </head>
    <body>
    <%
    out.println("<h1><em>JSP Showing your CLASSPATH</h1></em>");
    out.println("<hr></hr><p>");
    out.println(System.getProperty("java.class.path"));
    %>
    </body>
    </html>
    Hope this will help you.
    Stephan

Maybe you are looking for