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

Similar Messages

  • 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

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

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

  • MyFaces Trinidad Page Not Found..

    Hi
    Currently attempting to use Trinidad with Facelets but get "404 Page Not found". I've followed the WIKI and think its all correctly configured so hopefully this error is something obvious..
    Tomahawk and Facelets worked fine.
    Last few lines of log..
    View after rendering
    ========================================
    <org.ajax4jsf.framework.ajax.AjaxViewRoot id="_viewRoot" ajaxListener="NULL" ajaxListeners="[Lorg.ajax4jsf.framework.ajax.AjaxListener;@1619bca" family="javax.faces.ViewRoot" havePage="false" immediate="false" locale="en" renderKitId="org.apache.myfaces.trinidad.core" renderRegionOnly="false" rendered="true" rendererType="javax.faces.ViewRoot" rendersChildren="false" selfRendered="false" submitted="false" transient="false" viewId="/pages/secure/trinidad.jsp"/>
    ========================================
    exiting RENDER_RESPONSE(6) in org.apache.myfaces.lifecycle.LifecycleImpl
    service end
    Chain processed normally
    SecurityContextHolder set to new context, as request processing completedThanks,
    James

    Hi,
    Please check the log file to find more information about this issue. The path of the log file is:
    C:\Program Files\Common Files\microsoft shared\Web Server Extensions\15\LOGS.
    In addition, please make sure the URL of the site is correct.
    Please check whether you could access other pages in the problematic site.
    Best Regards,
    Wendy
    Wendy Li
    TechNet Community Support

  • Migrating from Eclipse/Ant/MyFaces Trinidad to using JDeveloper--need help

    I recently downloaded JDeveloper 11.1.1.2.0. Several years ago, I used JDev to do some very simple JSP/servlet development with no formal framework. Times have changed a lot.
    For the past few years, I have been developing server-side Java web apps using Eclipse JEE and Ant (ie, everything is set up so that the developer does not depend on the IDE). We currently implement web apps using Apache MyFaces Trinidad JSF components (but not Facelets). Any developer here can check out our code and simply run Ant to build the projects--no need to even have Eclipse installed. Anyone here can build and develop with a text editor and Ant, if they prefer.
    I am impressed and yet overwhelmed by the robust functionality of the latest JDev--so impressive, but I feel almost a bit too removed from "seeing" what is going on in the code and deployment. I like the notion of drag-and-drop along with wizards, but I want to also know how the JDev project is set up manually; ie, where everything goes, without having to guess on this. I get the impression that I need to learn, very specifically, the framework of ADF. But unfortunately, the tutorials seem to focus on only using the wizards and drag-drop functionality.
    For example, how do I set up JDev to build a project only by running Ant using my properties files and build.xml? This is trivial to do in Eclipse by specifying the Project Builder. Is there some similar setting I can use in JDev?
    Is there full compatibility with Trinidad--didn't Oracle make the original Trinidad?
    Has anyone posted advice on migrating from Eclipse JEE to JDev?
    Sorry if this is an old set of questions; if I had known where to search for this information, I would not be posting this thread.
    Many thanks!
    Mike Quentel

    The basic steps for bringing your existing code into JDeveloper are:
    Import->WAR File - or alternatively create a new application and in it create a new projects->project from existing source
    The next couple of steps have to do with setting the project properties:
    Then you need to set up your project content path (specifically things like Web content and resources content)
    Then you need to add the jars/libraries in your project classpath and libraries.
    A few related link:
    http://blogs.oracle.com/shay/2010/01/migrating_from_netbeans_to_jde.html - netbeans migration but similar concepts
    http://www.oracle.com/technology/products/jdev/howtos/1013/w4wljdev/workshopandjdev.html - basic migration from Eclipse to JDeveloper
    http://blogs.oracle.com/shay/2009/02/using_trinidad_in_jdeveloper_1.html - Using trinidad in JDeveloper
    Also don't forget that you can now set your JDeveloper accelerators to be based on Eclipse key mapping - might make the migration easier.

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

  • Shared library for  MyFaces Trinidad

    Hello!
    I'm having some trouble trying to create a shared library in OC4J 10.1.3.3.0. My goal is to deploy multiple applications that use MyFaces and Trinidad, but using a shared library that contains every JAR required.
    This is what I've done so far:
    1. I created the directory D:\workspace\oc4j_10.1.3\j2ee\home\shared-lib\sidi\1 and put there every JAR included in MyFaces Trinidad Demo.
    2. Edited server.xml and added the following lines:
    <shared-library name="sidi" version="1">
    <code-source path="*"/>
    </shared-library>
    3.- Edited the orion-application.xml in each application that needs MyFaces Trinidad support and added the following lines:
    <imported-shared-libraries>
    <import-shared-library name="sidi" />
    </imported-shared-libraries>
    When I try to run any application that uses MyFaces Trinidad, I get this error message:
    java.lang.IllegalStateException: No Factories configured for this Application. This happens if the faces-initialization does not work at all - make sure that you properly include all configuration settings necessary for a basic faces application and that all the necessary libs are included. Also check the logging output of your web application and your container for any exceptions!
    If you did that and find nothing, the mistake might be due to the fact that you use some special web-containers which do not support registering context-listeners via TLD files and a context listener is not setup in your web.xml.
    A typical config looks like this;
    <listener> <listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
    </listener>
         at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:93)
         at javax.faces.webapp.FacesServlet.init(FacesServlet.java:91)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.HttpApplication.loadServlet(HttpApplication.java:2371)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.HttpApplication.findServlet(HttpApplication.java:4824)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.HttpApplication.findServlet(HttpApplication.java:4748)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.HttpApplication.getRequestDispatcher(HttpApplication.java:2971)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:741)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:221)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:122)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:111)
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
         at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:239)
         at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:34)
         at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:880)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:595)
    If I add that listener to web.xml, the error changes to this:
    9/08/2007 02:37:28 PM org.apache.myfaces.config.FacesConfigurator feedStandardConfig
    INFO: Reading standard config org/apache/myfaces/resource/standard-faces-config.xml
    9/08/2007 02:37:28 PM org.apache.myfaces.config.FacesConfigurator feedClassloaderConfigurations
    INFO: Reading config code-source:/D:/workspace/oc4j_10.1.3/j2ee/home/shared-lib/sidi/1/tomahawk-1.1.6.jar!/META-INF/faces-config.xml
    9/08/2007 02:37:29 PM org.apache.myfaces.config.FacesConfigurator feedClassloaderConfigurations
    INFO: Reading config code-source:/D:/workspace/oc4j_10.1.3/j2ee/home/shared-lib/sidi/1/trinidad-impl-1.0.1.jar!/META-INF/faces-config.xml
    9/08/2007 02:37:31 PM org.apache.myfaces.config.FacesConfigurator feedWebAppConfig
    INFO: Reading config /WEB-INF/faces-config.xml
    9/08/2007 02:37:31 PM org.apache.myfaces.config.FacesConfigurator logMetaInf
    INFO: MyFaces-package : myfaces-api not found.
    9/08/2007 02:37:31 PM org.apache.myfaces.config.FacesConfigurator logMetaInf
    INFO: MyFaces-package : myfaces-impl not found.
    9/08/2007 02:37:31 PM org.apache.myfaces.config.FacesConfigurator logMetaInf
    INFO: MyFaces-package : tomahawk-sandbox not found.
    9/08/2007 02:37:31 PM org.apache.myfaces.config.FacesConfigurator logMetaInf
    INFO: MyFaces-package : tomahawk not found.
    If I place the JARs inside each WEB-INF/lib the applications work, but I'm trying to avoid doing this to have smaller EARs when the applications are packaged for deployment in the production servers.
    What am I doing wrong? Hope you can help me with this.

    Hi Aram,
    The default behaviour of OC4J is to NOT run the listeners provided inside the taglibs. As for java server faces, tomahawk and trinidad use taglibs that rely on the listener configured in the tld file
    You'd need not only to deploy the "shared library", but also, drop the jars in the $OC4J/j2ee/home/taglibs directory
    And, make sure that in your "global-web-application.xml" you have:
    <orion-web-app
    [... whatever ...]
         jsp-cache-tlds="on"
         jsp-taglib-locations="../taglibs"
    >
    that means, the attribute "jsp-taligb-locations is defined for the orion-web-app tag. With that, the listener is going to be loaded, and you'd not need to configure it in the web.xml

  • 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

  • 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

  • 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

  • Black screen instead of login window

    Hello. I have a problem when booting a PowerBook G4 running Mac OS X 10.5.8. I turn it on, see the grey screen, see the Apple logo, see the loading icon, see (for a fraction of second) the blue screen and then....black screen and nothing more. I have

  • Problems with a result in a switch/case control statement

    I am having troubles with a switch/case statement in which I am trying to get a result returned from different operators. The problem is that the result always returns 0 no matter what I put in the driver class. The class where the result needs to be

  • WLAN won't work on my Satellite L650D

    Hi all.... On my laptop the wireless LED is orange and wont work... When i have the notebook connected to Ethernet cable, it works great but the minute I remove it, it goes off . Anyone know my problem ? Thank you

  • Referencing buttons in AS3

    I am trying to figure out a way to reference a specific button out of a large group of buttons in AS3. I'll explain. Let's say, for instance, I have a lot of buttons on the stage (let's say 100.) Each of these buttons causes something to happen. Inst

  • Service complaint with sales items

    Hi guru's, If I have a CRM service complaint document with sales items in it (returns or replacement) how does the system know to replicate the item to ECC to create the return order? Also, hows does the system know which order type in ECC to use? Ma