Org.apache.myfaces.custom.fileupload.UploadedFile

in my jsp i would not add this
<%@ taglib uri="http://myfaces.apache.org/extensions" prefix="x"%>
and my bean i colud not import org.apache.myfaces.custom.fileupload.UploadedFile;
what libray i have to add to make this work..where i will get that
pls help

Hi,
you need myfaces-all.jar and then import the tag library from this.
Frank

Similar Messages

  • JDeveloper overwriting org.apache.myfaces.trinidad.CHANGE_PERSISTENCE?

    We're using some Web Center features, notably Composer, but require a custom change manager (our change manager chains to oracle.adf.view.page.editor.change.ComposerChangeManager)
    I'm seeing strange behavior in jdev when running our app in WLS (jdev 11.1.1.5.0):
    Doing a simple test, before starting jdev, make web.xml writable. Modify the org.apache.myfaces.trinidad.CHANGE_PERSISTENCE parameter and then start jdev. Do a Make All & then run your main web project – when the app is fully running, open web.xml from a terminal and the modification to the CHANGE_PERSISTENCE parameter has disappeared.
    (you need MDS enabled and Composer as a library for this to happen)
    Has anyone else noticed this behavior / is aware of a work around?
    Thanks,
    Colm.

    @John had replied to this in one of my post and i take it from that
    This is by default in Integrated weblogic Server so trackand show the changes on the spot. Once deployed on Standalone WS this error will go of. You cannot control this behavior in JDev 11.1.2.1

  • Org.apache.myfaces.trinidadinternal.menu.ImmutableGroupNode: ClassCastError

    Hi All,
    In our application, we have our own version of "org.apache.myfaces.trinidad.model.XMLMenuModel" and we override "setWrappedData()". But when we try to loop through the "treeModel" object's wrappedData or children and try to cast them to "org.apache.myfaces.trinidad.menu.ImmutableGroupNode", we get a ClassCastException :
    java.lang.ClassCastException: org.apache.myfaces.trinidadinternal.menu.ImmutableGroupNode cannot be cast to org.apache.myfaces.trinidad.menu.ImmutableGroupNode
    Is this means we have to use the deprecated class instead ?
    Version of Jdev : 11.1..1.4.0
    Trinidad Specs :
    Specification-Title: Apache MyFaces Trinidad API
    Specification-Version: 1.2.12.3-SNAPSHOT
    Specification-Vendor: The Apache Software Foundation
    Implementation-Title: Apache MyFaces Trinidad API
    Implementation-Version: 1.2.12.3-SNAPSHOT
    Thanks in advance for your response.
    - Soham

    There are two methods involved :
    private TopLevelMenu topLevelMenu;
    List<String> pages;
    @Override
    public void setWrappedData(Object data) {
    if (topLevelMenu != null && !topLevelMenu.isPagesSet()) {
    ChildPropertyTreeModel model = (ChildPropertyTreeModel) data;
    ArrayList<MenuNode> children =
    (ArrayList<MenuNode>) model.getWrappedData();
    pages = getPages(children);
    topLevelMenu.setPages(pages);
    super.setWrappedData(data);
    * Gets all pages in this list of children. Is called recursively
    * @param children
    * @return
    private List<String> getPages(ArrayList<MenuNode> children) {
    List<String> pages = new ArrayList<String>();
    for (MenuNode node : children) {
    if (node instanceof ImmutableGroupNode) {
    ImmutableGroupNode groupNode = (ImmutableGroupNode) node;
    // recursive call to process grand children
    ArrayList<MenuNode> nodeChildren =
    (ArrayList<MenuNode>) groupNode.getChildren();
    pages.addAll(getPages(nodeChildren));
    } else {
    pages.add(node.getFocusViewId());
    return pages;
    These methods only works with :
    org.apache.myfaces.trinidadinternal.menu.ImmutableGroupNode;
    org.apache.myfaces.trinidadinternal.menu.MenuNode;

  • Org.apache.myfaces.trinidad.CHECK_FILE_MODIFICATION

    Hello OTN,
    When I run my ADF application (intergrated WLS) there's a warning in console, that I have org.apache.myfaces.trinidad.CHECK_FILE_MODIFICATION = true in my web.xml.
    I tried to rerun the application (and the server) like this:
      <context-param>
        <description>If this parameter is true, there will be an automatic check of the modification date of your JSPs, and saved state will be discarded when JSP's change. It will also automatically check if your skinning css files have changed without you having to restart the server. This makes development easier, but adds overhead. For this reason this parameter should be set to false when your application is deployed.</description>
        <param-name>org.apache.myfaces.trinidad.CHECK_FILE_MODIFICATION</param-name>
        <param-value>false</param-value>
      </context-param>and like this:
    <!--
    <context-param>
        <description>If this parameter is true, there will be an automatic check of the modification date of your JSPs, and saved state will be discarded when JSP's change. It will also automatically check if your skinning css files have changed without you having to restart the server. This makes development easier, but adds overhead. For this reason this parameter should be set to false when your application is deployed.</description>
        <param-name>org.apache.myfaces.trinidad.CHECK_FILE_MODIFICATION</param-name>
        <param-value>true</param-value>
      </context-param>
    -->But still I receive the same warning.
    How do I turn CHECK_FILE_MODIFICATION off?
    Thanks.
    JDev 11.1.2.1

    @John had replied to this in one of my post and i take it from that
    This is by default in Integrated weblogic Server so trackand show the changes on the spot. Once deployed on Standalone WS this error will go of. You cannot control this behavior in JDev 11.1.2.1

  • Request "org.apache.myfaces.trinidad.webapp.ResourceServlet"

    I recive this request on my adf application
    *defowMenu(event){       var adfRichMenu = event.getSource();       adfRichMenu.getPeer().show();       } function href(link){        location.href = link;      } </script> <div id*
    on "org.apache.myfaces.trinidad.webapp.ResourceServlet" servelet
    request:
    GET /IugStdPortal-StdPortalView-context-root/afr/partition/ie/defowMenu(event)%7B%20%20%20%20%20%20%20var%20adfRichMenu%20=%20event.getSource();%20%20%20%20%20%20%20adfRichMenu.getPeer().show();%20%20%20%20%20%20%20%7D%20%20%20%20%20%20%20%20%20%20%20%20%20function%20href(link)%7B%20%20%20%20%20%20%20%20location.href%20=%20link;%20%20%20%20%20%20%7D%20%20%20%20%3C/script%3E%20%20%20%20%20%20%20%3Cdiv%20id= HTTP/1.1
    I belive this is XSS injection
    is there any thing I must do or waht?
    can you help me?
    BR,
    Alaa

    Hi,
    the resource servlet handles the download of resources like JS files, image files etc that should not use the "expensive" faces lifecycle for download. The script seems to be an event handler that opens a menu item (for display)
    Frank
    Edited by: Frank Nimphius on Feb 8, 2012 5:17 PM

  • Org.apache.myfaces.Email.INVALID

    Hi,
    I am using <t:validateEmail /> for validation of email address on a form. when a wrong email address is entered I am getting the following as the error:
    "org.apache.myfaces.Email.INVALID". I would like to see a message instead of this. I have added the following line in the file resources/bundle/Messages.properties
    org.apache.myfaces.Email.INVALID=Invalid Email address!
    org.apache.myfaces.Email.INVALID_detail=The given value ({0}) is not a correct email addressAny ideas how I can get rid of that?
    Thanks a lot
    -H

    For any one facing this problem, in addition to what I have done so far,
    just add the following in faces-config.xml
         <application>
              <message-bundle>bundle.Messages</message-bundle>
         </application>-H

  • Org.apache.myfaces.trinidadinternal.application.StateManagerImpl

    Hi,
    I am using trinidad tags. In web.xml CLIENT_STATE_METHOD is set to all.
    <param-name>org.apache.myfaces.trinidad.CLIENT_STATE_METHOD</param-name>
    <param-value>all</param-value>
    My logs are getting filled with below message. Is there a way to avoid this meassage.
    StateManagerI E org.apache.myfaces.trinidadinternal.application.StateManagerImpl restoreView No structure available and no root available

    Hi Raghava,
    Please find the below links.These may be helpful to you
    http://www.coderanch.com/t/477974/BEA-Weblogic/weblogic-admin-server-down
    ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'

  • Error/Warning Messages. via org.apache.myfaces.trinidad.................

    Hi,
    I use Jdeveloper Studio version 11.1.2.3.0
    Each time i open the Jdeveloper to build my app i get these warning messages....
    WARNING: Apache Trinidad is running with time-stamp checking enabled. This should not be used in a production environment. See the org.apache.myfaces.trinidad.CHECK_FILE_MODIFICATION property in WEB-INF/web.xml
    Mar 27, 2013 5:23:12 PM org.apache.myfaces.trinidad.component.UIXEditableValue _isBeanValidationAvailable
    WARNING: A Bean Validation provider is not present, therefore bean validation is disabled
    Mar 27, 2013 5:23:23 PM org.apache.myfaces.trinidadinternal.agent.AgentFactoryImpl _populateUnknownAgentImpl
    WARNING: The User-Agent "null" is unknown; creating an agent with "unknown" agent attributes.
    Mar 27, 2013 5:23:23 PM org.apache.myfaces.trinidadinternal.agent.AgentFactoryImpl _populateUnknownAgentImpl
    WARNING: The User-Agent "null" is unknown; creating an agent with "unknown" agent attributes.
    Despite these messages, when i run my application on Integrated Weblogic Server, it runs just fine.... Also i tried accessing the WEB-INF/web.xml for "org.apache.myfaces.trinidad.CHECK_FILE_MODIFICATION" and it was set to FALSE..... then i changed it to TRUE restarted the Jdeveloper but the Warning message kept showing, so later changed it back to FALSE...
    Please any suggestion on how i can rectify these before deploying my app to Standalone Weblogic Server on a production environment?
    Thanks..
    OBI

    Also i tried accessing the WEB-INF/web.xml for "org.apache.myfaces.trinidad.CHECK_FILE_MODIFICATION" and it was set to FALSEAs I recall, the integrated WLS (the one that runs when you run from JDeveloper) always automagically sets this to TRUE, regardless of the web.xml settings.
    The other warnings:
    WARNING: A Bean Validation provider is not present, therefore bean validation is disabledYou can ignore
    WARNING: The User-Agent "null" is unknown; creating an agent with "unknown" agent attributes.You can probably ignore - this seems to me to be related to the browser you're using
    John

  • Error  "expected a myfaces custom component class in package"

    Can anybody help me on this?
    just copied the sandbox code on selectmanypicklist and tried in a separate package of mine.
    created a jsp page and used the selectmanypicklist component and im getting the component on my browser.
    But whn i added the javascript resource calling by "encodeJavascript(facesContext, uiComponent);" im geting an error saying tht "expected a myfaces custom component class in package org.apache.myfaces.custom". i placed the java script file in "mypackage/list/resource/pikscript.js".
    should i add anything on faces-config.xml file or anywhr else?
    Anybody can help on this?
    Thanx in Advance.

    The problem is that it calls a method validateCustomComponent in MyFacesResourceHandler to see if it can load the js file. This method controlls if the path of the js file begins with org.apache.myfaces.custom. If not throws an exception and doesn't load the file. I changed the package of the class that's trying to load the file in org.apache.myfaces.custom.xx and the package of the file js in org.apache.myfaces.custom.xx.resource. Now it's working.

  • [ANNOUNCE] Apache MyFaces 1.1.0 released

    The Apache MyFaces team are proud to announce the production stable release of MyFaces 1.1.0.
    Download it from http://myfaces.apache.org/binary.cgi
    This is the first MyFaces release to be officially compatible with the
    JSF 1.1 specification.
    Thanks to everyone in our open source community for their hard work in
    making this possible.
    Furthermore this release includes 164 bug fixes and 43 new features
    and improvements since the last release on 16 April.
    For more information see: http://myfaces.apache.org
    We hope you enjoy using MyFaces!
    The MyFaces Team
    Interested in all announcements and news regarding MyFaces? Please
    subscribe to our brandnew "announce" mailinglist: [email protected]

    hi
    Thankyou for the reply , i fixed it by replacing the old myfaces.jar and myfaces-extensions.jar (from myfaces1.0.7 version) with new myfaces-all.jar (myfaces1.1.1 version), now everything works except the tree build with the old version. I see an error with org.apache.myfaces.custom.tree2.TreeModel customerTreeModel =  new  TreeModel(treeData); by Cannot instantiate the type TreeModel, since it is not a concrete class.
    anyhow i am looking into the example provided by myfaces team, hope i will find soon...
    Cheers..
    To err is human--and to blame it on a computer is even more so.
    - Robert Orben

  • [ANNOUNCE] Apache MyFaces 1.1.1

    The Apache MyFaces team is pleased to announce the release of MyFaces
    1.1.1. This is a minor patch release that fixes a few of the major
    problems with the previous release.
    Apache MyFaces 1.1.1 is available for download from
    http://myfaces.apache.org/binary.cgi
    Apache MyFaces is a free open source implementation of JavaServer(tm)
    Faces.
    For more information see: http://myfaces.apache.org
    For a detailed list of changes and fixes since the previous release see:
    http://myfaces.apache.org/RELEASE-NOTES-1.1.1.txt
    We hope you enjoy using MyFaces!
    The MyFaces Team
    Interested in all announcements and news regarding MyFaces? Please
    subscribe to our "announce" mailinglist at: [email protected]

    hi
    Thankyou for the reply , i fixed it by replacing the old myfaces.jar and myfaces-extensions.jar (from myfaces1.0.7 version) with new myfaces-all.jar (myfaces1.1.1 version), now everything works except the tree build with the old version. I see an error with org.apache.myfaces.custom.tree2.TreeModel customerTreeModel =  new  TreeModel(treeData); by Cannot instantiate the type TreeModel, since it is not a concrete class.
    anyhow i am looking into the example provided by myfaces team, hope i will find soon...
    Cheers..
    To err is human--and to blame it on a computer is even more so.
    - Robert Orben

  • JSP error java.lang.NoClassDefFoundError: org/apache/commons/fileupload/Fil

    I'm rather new to jsp. I'm using myeclipse and I'm deploying my site on tomcat. I've been slowly working away on the errors in my log files. Most of the problems that I've run into have been missing jar files. The log error that I'm stuck on follows:
    10:14:40,359 ERROR [Faces Servlet]:253 - Servlet.service() for servlet Faces Servlet threw exception
    java.lang.NoClassDefFoundError: org/apache/commons/fileupload/FileUpload
         at org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(ExtensionsFilter.java:115)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
         at com.wolverinecrane.view.util.SecurityFilter.doFilter(SecurityFilter.java:77)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
         at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
         at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
         at java.lang.Thread.run(Thread.java:595)
    In my buildpath I have commons-fileupload-1.0.jar which includes org.apache.commons.fileupload which has the class FileUpload.class in it.
    Any help on what may be going wrong here would be appreciated.
    Dan

    Solved:
    http://javalive.com/modules/newbb/viewtopic.php?topic_id=355&post_id=1013&order=0&viewmode=flat&pid=0&forum=4#forumpost1013

  • JDeveloper 10.1.3.0.3 and Apache MyFaces 1.1.1 Integration, Aces help.

    First, I created a page that has both ADF Faces Core components and MyFaces components.
    Here are the configs:
    JSP Code:
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
    <%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t"%>
    <%@ taglib uri="http://xmlns.oracle.com/adf/faces" prefix="af"%>
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
    <%@ taglib uri="http://xmlns.oracle.com/adf/faces/html" prefix="afh"%>
    <html>
    <body>
    <f:view>
    <t:jscookMenu layout="hbr" theme="ThemeOffice">
    <t:navigationMenuItem id="nav_5" itemLabel="Tools"/>
    <t:navigationMenuItem id="nav_6" itemLabel="Help"/>
    </t:jscookMenu>
    <h:form>
    <af:commandButton text="ADF button"/>
    </h:form>
    </f:view>
    <body>
    <html>
    Included libs:
    adf-faces-impl.jar
    commons-beanutils.jar
    commons-codec.jar
    commons-collections.jar
    commons-digester.jar
    commons-el.jar
    commons-fileupload.jar
    commons-lang.jar
    commons-loggin.jar
    commons-validator.jar
    myfaces-api.jar
    myfaces-impl.jar
    tomahawk.jar
    Included Tag libs:
    af.tld
    afh.tld
    myfaces_core.tld
    myfaces_html.tld
    myfaces_ext.tld
    tomahawk.tld
    The Problem
    After I added a af:commandButton within the f:view, the html and body tags were automatically converted to afh:html and afh:body tags, this created a FacesException upon runtime so I had to change them back to plain old html and body tags and the page ran again. I am a bit hesitant about this step due to afh:body tags being required for PPR. Also, when I tried adding afh components to the page, they cause compile errors that would not normally if the page is enclosed by afh:html and afh:body tags.
    Some questions:
    Can afh tags play nicely with MyFaces components? If so, what am I doing wrong?
    If afh tags are needed by PPR then why is using afh tags a bad solution?
    What are possible workarounds?
    Thanks very much in advance.
    See posts by Adam Winer about afh tags
    Re: ADF FACES: Drag&drop of ADF Faces component set all prefixes to af: or :afh
    Re: ADF Faces panelForm
    Exception message caused by afh:html and afh:body tags:
    500 Internal Server Error
    javax.faces.FacesException: javax.faces.component.UIViewRoot     at org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:421)     at org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:234)     at oracle.adfinternal.view.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:157)     at oracle.adfinternal.view.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:157)     at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:352)     at javax.faces.webapp.FacesServlet.service(FacesServlet.java:107)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) - Developer Preview].server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)     at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._invokeDoFilter(AdfFacesFilterImpl.java:363)     at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._doFilterImpl(AdfFacesFilterImpl.java:332)     at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl.doFilter(AdfFacesFilterImpl.java:192)     at oracle.adf.view.faces.webapp.AdfFacesFilter.doFilter(AdfFacesFilter.java:87)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) - Developer Preview].server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)     at org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(ExtensionsFilter.java:122)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) - Developer Preview].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:693)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) - Developer Preview].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:397)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) - Developer Preview].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:866)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) - Developer Preview].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:451)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) - Developer Preview].server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:218)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) - Developer Preview].server.http.HttpRequestHandler.run(HttpRequestHandler.java:119)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) - Developer Preview].server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)     at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:245)     at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:231)     at oracle.oc4j.network.ServerSocketAcceptHandler.access$1000(ServerSocketAcceptHandler.java:33)     at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:820)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) - Developer Preview].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:298)     at java.lang.Thread.run(Thread.java:595)Caused by: javax.servlet.ServletException: javax.faces.component.UIViewRoot     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) - Developer Preview].server.http.EvermindPageContext.handlePageThrowable(EvermindPageContext.java:760)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) - Developer Preview].server.http.EvermindPageContext.handlePageException(EvermindPageContext.java:707)     at crdbmyfacesmenu2e_jsp._jspService(_crdbmyfacesmenu_2e_jsp.java:205)     [crdbmyfacesmenu.jsp]     at com.orionserver[Oracle Containers for J2EE 10g (10.1.3.0.0) - Developer Preview].http.OrionHttpJspPage.service(OrionHttpJspPage.java:60)     at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:410)     at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:473)     at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:404)     at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) - Developer Preview].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:846)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) - Developer Preview].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:397)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) - Developer Preview].server.http.ServletRequestDispatcher.unprivileged_forward(ServletRequestDispatcher.java:319)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) - Developer Preview].server.http.ServletRequestDispatcher.access$100(ServletRequestDispatcher.java:48)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) - Developer Preview].server.http.ServletRequestDispatcher$2.oc4jRun(ServletRequestDispatcher.java:226)     at oracle.oc4j.security.OC4JSecurity.doPrivileged(OC4JSecurity.java:274)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) - Developer Preview].server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:230)     at org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:415)     ... 25 more

    I had the same problem, poked around a bit on the Apache web site and came across the installation requirements:
    http://myfaces.apache.org/tomahawk/extensionsFilter.html
    The key in my case was installing the three extensionsFilter elements in my METAINF/web.xml file:
         <filter>
              <filter-name>MyFacesExtensionsFilter</filter-name>
              <filter-class>org.apache.myfaces.component.html.util.ExtensionsFilter</filter-class>
              <init-param>
                   <param-name>maxFileSize</param-name>
                   <param-value>20m</param-value>
              </init-param>
         </filter>
         <!-- extension mapping for adding <script/>, <link/>, and other resource tags to JSF-pages -->
         <filter-mapping>
              <filter-name>MyFacesExtensionsFilter</filter-name>
              <!-- servlet-name must match the name of your javax.faces.webapp.FacesServlet entry -->
              <servlet-name>Faces Servlet</servlet-name>
         </filter-mapping>
         <!-- extension mapping for serving page-independent resources (javascript, stylesheets, images, etc.) -->
         <filter-mapping>
              <filter-name>MyFacesExtensionsFilter</filter-name>
              <url-pattern>/faces/myFacesExtensionResource/*</url-pattern>
         </filter-mapping>
         <filter-mapping>
              <filter-name>MyFacesExtensionsFilter</filter-name>
              <url-pattern>*.faces</url-pattern>
         </filter-mapping>
    Once I redeployed, the menu came up just fine. I think the important one is the myFacesExtensionResource url-pattern value.

  • Java.lang.NullPointerException at org.apache.struts.taglib.tiles.InsertTag

    I am using tiles with JSF.
    my starting page is template.jsp which is like this..
    <f:view>
    <f:subview id="header">
    <tiles:insert attribute="header" flush="false"/>
    </f:subview>
    <f:subview id="menu">
    <tiles:insert attribute="menu" flush="false"/>
    </f:subview>
    </f:view>
    when ever the page is rendered, im not getting the value for attribute header or content. its throwing java.lang.NullPointerException at org.apache.struts.taglib.tiles.InsertTag.processAttribute(InsertTag.java:689)
    Below is my 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>
    <application>
    <view-handler>org.apache.myfaces.application.jsp.JspTilesViewHandlerImpl</view-handler>
    </application>
    </faces-config>
    Below is my web.xml
    <servlet>
    <servlet-name>Faces Servlet</servlet-name>
    <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
    <init-param>
    <param-name>javax.faces.application.CONFIG_FILES</param-name>
    <param-value>/ApplianceMgr/conf/faces-config.xml</param-value>
    </init-param>
    <load-on-startup>1</load-on-startup>
    </servlet>
    <servlet>
    <servlet-name>Tiles Servlet</servlet-name>
    <servlet-class>org.apache.struts.tiles.TilesServlet</servlet-class>
    <init-param>
    <param-name>tiles-definitions</param-name>
    <param-value>/ApplianceMgr/conf/tiles.xml</param-value>
    </init-param>
    <load-on-startup>2</load-on-startup>
    </servlet>
    <context-param>
    <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
    <param-value>server</param-value>
    </context-param>
    Below is my tiles.xml
    <tiles-definitions>
    <definition name="main.template" path="/template/template.jsp" >
    <put name="header" value="test from template" />
    <put name="menu" value="test from template" />
    </definition>

    Please post the tiles-config.xml, layout and tiles.
    Please refer
    http://www.oracle.com/technology/pub/articles/vohra_tiles.html

  • JSF/Tiles: [java.lang.ClassNotFoundException: org.apache.tiles.servlets.Til

    Hi,
    I am working on JSF1.2 in SAP NetWeaver CE and I am using Tiles. Please help me to resolve the following issues.
    ~~~~~~~~~~~~~~~~~~~
    1. File:G:\ws_wd\ce_ws.jdi\LocalDevelopment\DCs\demo.sap.com\lbsjsf\ear\_comp\gen\default\deploy\demo.sap.com~lbsjsf~ear.ear
         Name:lbsjsf~ear
         Vendor:demo.sap.com
         Location:localDevelopment
         Version:20090402105707
         Deploy status:Warning
         Version:NEW
         Description:
              1. Warning occurred on server 4585250 during deploy demo.sap.com/lbsjsf~ear : Web Class Existence Test: servlet class "org.apache.tiles.servlets.TilesServlet" cannot be found in the application class path. Possible reasons: 1) package or class name not correct; 2) missing referenced component (application or library); 3) missing reference to component (application or library)., file: demo.sap.com~lbsjsf~web.war#WEB-INF/web.xml, column 0, line 0, severity: warning
    Warning occurred on server 4585250 during deploy demo.sap.com/lbsjsf~ear : Web Class Existence Test: The servlet "com.cg.lbs.ui.controller.StartupConfigurationServlet" must implement "javax.servlet.Servlet"., file: demo.sap.com~lbsjsf~web.war#WEB-INF/web.xml, column 0, line 0, severity: warning
              2. Warning exception has been returned while the 'demo.sap.com/lbsjsf~ear' was starting. Warnings:
    Warning occurred on server 4585250 during startApp demo.sap.com/lbsjsf~ear : Cannot load servlet [org.apache.tiles.servlets.TilesServlet]. Error is: [java.lang.ClassNotFoundException: org.apache.tiles.servlets.TilesServlet
    ------------------------- Loader Info -------------------------
    ClassLoader name: [demo.sap.com/lbsjsf~ear]
    Living status: alive
    Direct parent loaders:
    [system:Frame]
    [service:servlet_jsp]
    [service:ejb]
    Resources:
    F:\usr\sap\CE1\J00\j2ee\cluster\apps\demo.sap.com\lbsjsf~ear\servlet_jsp\lbsjsf\root\WEB-INF\classes
    ++++++++++++++below is my web.xml+++++++++
    <?xml version="1.0" encoding="UTF-8"?>
    <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xmlns="http://java.sun.com/xml/ns/javaee"
         xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
         xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
         id="WebApp_ID" version="2.5">
         <display-name>
              LocalDevelopment~LocalDevelopment~lbsjsf(2fweb~demo.sap.com
         </display-name>
         <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>
         <!-- extension mapping for adding <script/>, <link/>, and other resource tags to JSF-pages -->
         <filter-mapping>
              <filter-name>MyFacesExtensionsFilter</filter-name>
              <!-- servlet-name must match the name of your javax.faces.webapp.FacesServlet entry -->
              <servlet-name>Faces Servlet</servlet-name>
         </filter-mapping>
         <!-- extension mapping for serving page-independent resources (javascript, stylesheets, images, etc.) -->
         <filter-mapping>
              <filter-name>MyFacesExtensionsFilter</filter-name>
              <url-pattern>/faces/myFacesExtensionResource/*</url-pattern>
         </filter-mapping>
         <!-- extension mapping for adding <script/>, <link/>, and other resource tags to JSF-pages -->
         <filter-mapping>
              <filter-name>MyFacesExtensionsFilter</filter-name>
              <url-pattern>*.jsf</url-pattern>
         </filter-mapping>
         <servlet>
              <servlet-name>Tiles Servlet</servlet-name>
              <servlet-class>
                   org.apache.tiles.servlets.TilesServlet
              </servlet-class>
              <init-param>
                   <param-name>definitions-config</param-name>
                   <param-value>/WEB-INF/tiles.xml</param-value>
              </init-param>
              <load-on-startup>3</load-on-startup>
         </servlet>
         <servlet>
              <servlet-name>Faces Servlet</servlet-name>
              <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
              <load-on-startup>2</load-on-startup>
         </servlet>
         <servlet>
              <servlet-name>StartupConfiguration</servlet-name>
              <servlet-class>
                   com.cg.lbs.ui.controller.StartupConfigurationServlet
              </servlet-class>
              <init-param>
                   <param-name>log4j-init-file</param-name>
                   <param-value>sswblog4j.xml</param-value>
              </init-param>
              <load-on-startup>1</load-on-startup>
         </servlet>
         <servlet-mapping>
              <servlet-name>Faces Servlet</servlet-name>
              <url-pattern>*.faces</url-pattern>
         </servlet-mapping>
         <welcome-file-list>
              <welcome-file>index.html</welcome-file>
         </welcome-file-list>
    </web-app>

    That's a pretty decent error message. Have you eliminated the potential causes which were listed in the message?

Maybe you are looking for