FacesException at Tomcat startup with Trinidad Render Kit

I have an application that seems to work for other developers in our office but continues throwing errors when Tomcat is started. The FacesException thrown gives no message so it's been tough to debug. The InstantiationException thrown when trying to instantiate the Trinidad CoreRenderKitFactory doesn't give me much of a clue either.
Hopefully someone has seen this before b/c I haven't found any useful clues in the logs or Googling around. If nothing else, maybe someone could help me get Tomcat to output more detailed log info in the console (I'm using MyEclipse) in case there is some more useful info in there.
The environment is JSF 1.1, Tomcat 5.5.28, Java 1.5, Apache Trinidad 1.0.10, Spring 2.5
Thanks,
Adam
Jan 7, 2010 1:00:31 PM org.apache.catalina.core.AprLifecycleListener lifecycleEvent
INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Genuitec\Pulse Explorer\jre\bin;.;C:\WINDOWS\system32;C:\WINDOWS;C:/Program Files/Genuitec/Common/binary/com.sun.java.jdk.win32.x86_1.6.0.013/jre/bin/client;C:/Program Files/Genuitec/Common/binary/com.sun.java.jdk.win32.x86_1.6.0.013/jre/bin;C:\orant\bin;C:\Program Files\Attachmate\INFOCN2K\;C:\Program Files\Attachmate\INFOCN2K\Accmgr32;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Attachmate\E!E2K\;C:\SFU\common\;C:\Program Files\Hummingbird\Connectivity\10.00\Accessories\;;C:\Program Files\Common Files\Roxio Shared\DLLShared;C:\Program Files\GuardianEdge\GuardianEdge Clients\;C:\Program Files\Java\jre1.5.0_10\bin;C:\orant\bin;C:\Program Files\Attachmate\INFOCN2K\;C:\Program Files\Attachmate\INFOCN2K\Accmgr32;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Attachmate\E!E2K\;C:\SFU\common\;C:\Program Files\Hummingbird\Connectivity\10.00\Accessories\;;C:\Program Files\Common Files\Roxio Shared\DLLShared;C:\Program Files\GuardianEdge\GuardianEdge Clients\
Jan 7, 2010 1:00:31 PM org.apache.coyote.http11.Http11BaseProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Jan 7, 2010 1:00:31 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 516 ms
Jan 7, 2010 1:00:31 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Jan 7, 2010 1:00:31 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.28
Jan 7, 2010 1:00:31 PM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
log4j:WARN No appenders could be found for logger (org.apache.commons.digester.Digester.sax).
log4j:WARN Please initialize the log4j system properly.
javax.faces.FacesException: org.apache.myfaces.trinidadinternal.renderkit.CoreRenderKitFactory
at javax.faces.FactoryFinder.getImplGivenPreviousImpl(FactoryFinder.java:553)
at javax.faces.FactoryFinder.getImplementationInstance(FactoryFinder.java:426)
at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:229)
at org.apache.myfaces.config.FacesConfigurator.configureRenderKits(FacesConfigurator.java:735)
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:3795)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4252)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at org.apache.catalina.core.StandardService.start(StandardService.java:448)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
Caused by: java.lang.InstantiationException: org.apache.myfaces.trinidadinternal.renderkit.CoreRenderKitFactory
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at javax.faces.FactoryFinder.getImplGivenPreviousImpl(FactoryFinder.java:551)
... 21 more
Jan 7, 2010 1:00:50 PM org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart
Jan 7, 2010 1:00:50 PM org.apache.catalina.core.StandardContext start

I have an application that seems to work for other developers in our office but continues throwing errors when Tomcat is started. The FacesException thrown gives no message so it's been tough to debug. The InstantiationException thrown when trying to instantiate the Trinidad CoreRenderKitFactory doesn't give me much of a clue either.
Hopefully someone has seen this before b/c I haven't found any useful clues in the logs or Googling around. If nothing else, maybe someone could help me get Tomcat to output more detailed log info in the console (I'm using MyEclipse) in case there is some more useful info in there.
The environment is JSF 1.1, Tomcat 5.5.28, Java 1.5, Apache Trinidad 1.0.10, Spring 2.5
Thanks,
Adam
Jan 7, 2010 1:00:31 PM org.apache.catalina.core.AprLifecycleListener lifecycleEvent
INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Genuitec\Pulse Explorer\jre\bin;.;C:\WINDOWS\system32;C:\WINDOWS;C:/Program Files/Genuitec/Common/binary/com.sun.java.jdk.win32.x86_1.6.0.013/jre/bin/client;C:/Program Files/Genuitec/Common/binary/com.sun.java.jdk.win32.x86_1.6.0.013/jre/bin;C:\orant\bin;C:\Program Files\Attachmate\INFOCN2K\;C:\Program Files\Attachmate\INFOCN2K\Accmgr32;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Attachmate\E!E2K\;C:\SFU\common\;C:\Program Files\Hummingbird\Connectivity\10.00\Accessories\;;C:\Program Files\Common Files\Roxio Shared\DLLShared;C:\Program Files\GuardianEdge\GuardianEdge Clients\;C:\Program Files\Java\jre1.5.0_10\bin;C:\orant\bin;C:\Program Files\Attachmate\INFOCN2K\;C:\Program Files\Attachmate\INFOCN2K\Accmgr32;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Attachmate\E!E2K\;C:\SFU\common\;C:\Program Files\Hummingbird\Connectivity\10.00\Accessories\;;C:\Program Files\Common Files\Roxio Shared\DLLShared;C:\Program Files\GuardianEdge\GuardianEdge Clients\
Jan 7, 2010 1:00:31 PM org.apache.coyote.http11.Http11BaseProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Jan 7, 2010 1:00:31 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 516 ms
Jan 7, 2010 1:00:31 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Jan 7, 2010 1:00:31 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.28
Jan 7, 2010 1:00:31 PM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
log4j:WARN No appenders could be found for logger (org.apache.commons.digester.Digester.sax).
log4j:WARN Please initialize the log4j system properly.
javax.faces.FacesException: org.apache.myfaces.trinidadinternal.renderkit.CoreRenderKitFactory
at javax.faces.FactoryFinder.getImplGivenPreviousImpl(FactoryFinder.java:553)
at javax.faces.FactoryFinder.getImplementationInstance(FactoryFinder.java:426)
at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:229)
at org.apache.myfaces.config.FacesConfigurator.configureRenderKits(FacesConfigurator.java:735)
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:3795)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4252)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at org.apache.catalina.core.StandardService.start(StandardService.java:448)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
Caused by: java.lang.InstantiationException: org.apache.myfaces.trinidadinternal.renderkit.CoreRenderKitFactory
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at javax.faces.FactoryFinder.getImplGivenPreviousImpl(FactoryFinder.java:551)
... 21 more
Jan 7, 2010 1:00:50 PM org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart
Jan 7, 2010 1:00:50 PM org.apache.catalina.core.StandardContext start

Similar Messages

  • Server startup with Tomcat

    I see how servlets can be loaded at the startup of Tomcat and you can pass initialization parameters to it. Is this the mechanism if you wanted to start additional thread classes that are not servlets? I have a queue class and a thread that acts on the queue. When items are added, it processes them a removes it from the queue. I'd like to have these be created and running at the Tomcat startup. Is there a more preferred mechanism for accomplishing this?
    Basically, when Tomcat starts, I would like a few singleton classes to be created and available. With the queue example, if the Tomcat restarts, it should be able to rebuild itself from stored information on continue executing.

    Take a look at listeners:
    http://jakarta.apache.org/tomcat/tomcat-4.1-doc/servlet
    pi/javax/servlet/ServletContextListener.html
    You could listen to the start/stop of the context, and
    then initialize your singletons.
    Patrickokay, I see how that can be done. Is this the preferred method or pattern? Would the event be thrown if there were servlets that loaded upon startup or would it only start when a user accessed it?

  • 2 render-kit in  my faces-config.xml

    I'd like to have 2 renderkit in my faces-config.xml. I set render-kit-id with "HTML_BASIC" for the first one and
    "XHTMLMP" for the 2nd. Then i got an exception when i launch tomcat :
    javax.faces.FacesException: java.lang.IllegalArgumentException: No renderKitClass for renderKit XHTMLMP
         at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:336)
    Why ? I use jsf in a portlet webapp and want to select one of these 2 renderers in my portlet constructor.
    Fran�ois

    Can you please post your faces-config.xml?
    Thanks.

  • JSF Design View broken? Fallback Rendering, "Render Kit" not found

    Hi,
    I just wanted to toy around with JDeveloper 11g TP3, created a new project, added technology scope JSF (+ JSP/Servlets, etc.) then the tag-library ADF Faces Component 11-ji3.
    Then I created a data control from a POJO and wanted to visualize this within a JSF page. So I created one (via faces-config visual editor), dragged the appropriate getter-method to the page in the up-to-this-point working WYSIWYG editor, selected ADF-read-only-form and suddenly found myself in the JSF "alternate rendering" (a view like in an hierachical XML editor). I enabled "design time messages in log" to see what the problem was.
    Stopping/Starting JDeveloper or removing tag libraries like suggested in other threads did not work. I was unable to reactivate the wysiwyg editor for this page or any new JSF page in this application, always the "alternate rendering".
    Log said "oracle.sql.OraData" was missing, so I added ojdbc6.jar to the project classpath. Didn't help, no wysiwyg editor, log now says:
    --- snip ---
    18.02.2008 14:12:37 oracle.adfinternal.view.faces.lifecycle.LifecycleImpl _isPostback
    WARNUNG: Render Kit konnte nicht gefunden werden
    WARNING: A problem was encountered executing the page. Using fallback rendering.
    java.lang.NullPointerException
         at org.apache.myfaces.trinidad.util.Service.getService(Service.java:82)
         at org.apache.myfaces.trinidadinternal.application.ViewHandlerImpl._getExtendedRenderKitService(ViewHandlerImpl.java:333)
         at org.apache.myfaces.trinidadinternal.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:154)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._renderResponse(LifecycleImpl.java:633)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:244)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:204)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)
    --- end ---
    I have this error even for newly created (ie blank/HelloWorld) JSF pages in my application. I started adding some libraries, but nothing helped. How do I reactivate the wysiwyg editor?
    Thanks!

    Frank,
    thanks for the reply. I will try what you suggested, but the trinidad-config.xml is actually not missing in my project, although it does not include a render kit definition.
    As my first step with 11g I also tried one of the tutorials (http://www.oracle.com/technology/obe/obe11jdev/11/ejb/ejb.html) and there the wysiwyg was working nicely the whole time.
    In both cases (my project == not working wysiwyg editor, tutorial == nicely working wysiwyg editor) the content of the trinidad-config.xml is the same:
    --- trinidad-config.xml ---
    <?xml version="1.0" encoding="windows-1252"?>
    <trinidad-config xmlns="http://myfaces.apache.org/trinidad/config">
    <skin-family>blafplus-rich</skin-family>
    </trinidad-config>
    --- end-of-file ---
    Rgds
    Axel

  • Problem with Trinidad skinning

    Hi,
    I'm a new Trinidad user and I'm unable to get the skinning to work. Maybe I did something wrong or forgot something. Trinidad tags are displayed in the webpage (but not skinned). I installed the skin "beach" from the demo, adding a block that would be supposed to skin a <tr:inputText> but it doesn't. Some help would we very appreciated!
    Added in skins\beach\beach.css :
    .AFFieldText {
    text-decoration:none;
    font-size: 22px;
    font-family: verdana, arial, helvetica, sans-serif;
    color: fuchsia;
    background-color:000099;
    WEB-INF\trinidad-skins.xml :
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <skins xmlns="http://myfaces.apache.org/trinidad/skin">
    <skin>
    <id>beach.desktop</id>
    <family>beach</family>
    <render-kit-id>org.apache.myfaces.trinidad.desktop</render-kit-id>
    <style-sheet-name>skins/beach/beach.css</style-sheet-name>
    </skin>
    </skins>
    WEB-INF\trinidad-config.xml :
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <trinidad-config xmlns=" http://myfaces.apache.org/trinidad/config ">
    <debug-output>true</debug-output>
    <skin-family>beach</skin-family>
    </trinidad-config>
    In the .jsp :
    <tr:inputText value="test" />
    The essential of WEB-INF\web.xml :
    (... context-params ...)
    <filter>
    <filter-name>trinidad</filter-name>
    <filter-class>org.apache.myfaces.trinidad.webapp.TrinidadFilter</filter-class>
    </filter>
    <filter-mapping>
    <filter-name>trinidad</filter-name>
    <servlet-name>faces</servlet-name>
    </filter-mapping>
    <servlet>
    <servlet-name>resources</servlet-name>
    <servlet-class>org.apache.myfaces.trinidad.webapp.ResourceServlet</servlet-class>
    </servlet>
    <servlet>
    <servlet-name>faces</servlet-name>
    <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>resources</servlet-name>
    <url-pattern>/adf/*</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>faces</servlet-name>
    <url-pattern>/HWTrinidad/*</url-pattern>
    </servlet-mapping>
    (...)

    Hi,
    The setup looks okay. However, Trinidad is an Apache project and all questions should be asked on the Trinidad mailing ([email protected]) lists. This forum here will start answering Trinidad questions when ADF Faces consumes it in JDeveloper 11.
    Frank

  • New render kit for JSF 1.2

    I have red and tried a customization of what is explained in this article about writing a new render kit:
    http://java.sun.com/javaee/javaserverfaces/reference/docs/customRenderKit.html
    My code is under JSF 1.2.
    I tried a new xml render kit, but my custom render kit seems to have problemi with alignement with JSP..why?
    This is my code, and then I explain the result:
    <?xml version="1.0" encoding="UTF-8"?>
    <jsp:root version="2.0"
        xmlns:f="http://java.sun.com/jsf/core"
        xmlns:h="http://java.sun.com/jsf/html"
        xmlns:jsp="http://java.sun.com/JSP/Page">
        <jsp:directive.page contentType="text/xml;charset=UTF-8"/>
        <f:view renderKitId="XML" >
            <root>          
                <h:outputText value="ciao" style="background-color:red;" />
            </root>
        </f:view>
    </jsp:root>Ok. When I execute this, I obtain a bad xml:
    <text><root></text>
    <text style="background-color:red;">ciao</text>
    <text></root></text>Instead if I put root xml element outside the <f:view> everything is right.
    It seems to suffer of the usual problem of content interweaving...
    Instead if I use the default custom render I can mix my content and tag withouit problem....

    Solved.
    I replaced
    <renderer-type>javax.faces.Text</renderer-type>with my custom renderer. Every text inside <v:view> seems to be wrapped around a UIOutput component, so when I write:
    <f:view>
    <root>
    </root>
    </f:view>it is the same of:
    <f:view>
    <f:verbatim><root></f:verbatim>
    <f:verbatim></root></f:verbatim>
    </f:view>The output is:
    <text><root></text>
    <text><root></text>And this is invalid xml.

  • JQuery Mobile with Trinidad/ADF Faces

    Hi
    Is it possible to use JQuery Mobile with Trinidad/ADF Faces? I tried using JQuery Mobile with Trinidad, but the trinidad components are not rendering on the page. Is there a way out?
    Below is my code:
    <?xml version='1.0' encoding='UTF-8'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1" xmlns:f="http://java.sun.com/jsf/core"
    xmlns:h="http://java.sun.com/jsf/html" xmlns:trh="http://myfaces.apache.org/trinidad/html"
    xmlns:tr="http://myfaces.apache.org/trinidad" xmlns:dvtt="http://xmlns.oracle.com/dss/trinidad/faces">
    <jsp:output omit-xml-declaration="true" doctype-root-element="HTML"
    doctype-system="http://www.w3.org/TR/html4/loose.dtd"
    doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN"/>
    <jsp:directive.page contentType="text/html;charset=UTF-8"/>
    <f:view>
    <trh:html>
    <trh:head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    <link rel="stylesheet" href="http://code.jquery.com/mobile/1.0b2/jquery.mobile-1.0b2.min.css"/>
    <script src="http://code.jquery.com/jquery-1.6.2.min.js"></script>
    <script src="http://code.jquery.com/mobile/1.0b2/jquery.mobile-1.0b2.min.js"></script>
    </trh:head>
    <trh:body>
    <div data-role="page" data-theme="c" id="page">
    <div data-role="header" data-theme="e" id="header">
    <h1>Wireless &gt; Logon</h1>
    <a href="../../ data-icon="home" data-iconpos="notext" data-direction="reverse"
    class="ui-btn-right jqm-home">Home</a>
    </div>
    </div>
    <tr:form>
    <tr:commandButton id="cbt" text="command button"/>
    </tr:form>
    </trh:body>
    </trh:html>
    </f:view>
    <!--oracle-jdev-comment:deviceCategory:pda-->
    </jsp:root>
    Regards
    Navin

    With out the JQuery mobile settings ie the css and js entries. The trinidad components are rendering. Below is my web.xml file.
    <?xml version = '1.0' encoding = 'windows-1252'?>
    <web-app xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
    version="2.5">
    <context-param>
    <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
    <param-value>client</param-value>
    </context-param>
    <context-param>
    <param-name>javax.faces.PARTIAL_STATE_SAVING</param-name>
    <param-value>false</param-value>
    </context-param>
    <context-param>
    <description>If this parameter is true, there will be an automatic check of the modification date of your JSPs, and saved state will be discarded when JSP's change. It will also automatically check if your skinning css files have changed without you having to restart the server. This makes development easier, but adds overhead. For this reason this parameter should be set to false when your application is deployed.</description>
    <param-name>org.apache.myfaces.trinidad.CHECK_FILE_MODIFICATION</param-name>
    <param-value>false</param-value>
    </context-param>
    <filter>
    <filter-name>trinidad</filter-name>
    <filter-class>org.apache.myfaces.trinidad.webapp.TrinidadFilter</filter-class>
    </filter>
    <filter-mapping>
    <filter-name>trinidad</filter-name>
    <servlet-name>Faces Servlet</servlet-name>
    <dispatcher>FORWARD</dispatcher>
    <dispatcher>REQUEST</dispatcher>
    <dispatcher>ERROR</dispatcher>
    </filter-mapping>
    <servlet>
    <servlet-name>Faces Servlet</servlet-name>
    <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
    <load-on-startup>1</load-on-startup>
    </servlet>
    <servlet>
    <servlet-name>resources</servlet-name>
    <servlet-class>org.apache.myfaces.trinidad.webapp.ResourceServlet</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>Faces Servlet</servlet-name>
    <url-pattern>/faces/*</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>resources</servlet-name>
    <url-pattern>/adf/*</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>resources</servlet-name>
    <url-pattern>/afr/*</url-pattern>
    </servlet-mapping>
    </web-app>

  • Trying to get round the default render kit's use of tables

    Apologies if this is a simple question - I'm solid with Java and HTML but I'm new to JSF.
    The default render kit uses tables a lot, eg for the +<h:selectOne>+ tag. This is not something that I like - I want a radio button group to be rendered as a +<ul>+ list. It's way more versatile to style up with CSS and it's semantically stronger.
    Achieving his appears to be harder than I first thought. The tag structure that the renderer outputs is cooked right into the middle of the source code (a seventh-generation class, I note - wow! Clearly, "extension bad, composition good" is falling on deaf ears somewhere), so overriding the renderer means duplicating all its business code for the sake of a couple of tags.
    Then, unless I'm doing something wrong (which is eminently possible), it's not actually possible to swap out the renderer for the javax.faces.SelectOne component; I've added the relevant elements to faces-config.xml but the kit always uses its default renderer instead of mine.
    So, that means I will have to create a custom component and tag as well as the renderer, right? And a new render kit?
    I'm guessing I must be missing something - I can't believe it's so difficult to just render a list of buttons in a list instead of a table. I was kind of hoping to be able to supply a sort of template for such grouped items.
    From looking around, I've not noticed any third party HTML render kits, either. Guess I'm not looking hard enough - does anyone have any pointers?
    So - to my main question. Has anyone done this? Implemented a simple solution to having pages full of tables? Any details would be great, plus any pointers to stupid things I'm doing - I'm sure there are plenty :)
    Thanks

    Towards your specific issue with the radio buttons, use Tomahawk's t:selectOneRadio component with the "spread" layout along with the t:radio component. This will allow you to layout the radio buttons however you like.
    In general, when faced with these types of "how can that be missing?" holes or annoyances in JSF I find the solution in Tomahawk.

  • How to start process at tomcat startup

    Hello frens
    I need to start a process when tomcat startup
    the problem is when tomcat startup i have a bat file PushMsg.bat which content are as .............
    cd c:
    cd \tomcat\webapps\myApp\WEB-INF\classes
    java SendMsg
    i need to run this bat file as tomcat get startup .how to achieve this????????????

    Se16 -- table:RSPCPROCESSLOG - click on display entries.
    Entet the variant, instance start date (this info you can get from the "display message" of PC.
    Now execute to display the table entries of RSPCPROCESSLOG.
    Next goto SE37 transaction --enter RSPC_PROCESS_FINISH
    Take the entries from the above table to set the input parameters of the FM.
    I_logid = log_id(from above table)
    I_type = type(from above table)
    i_variant = varaint (from above table)
    i_instance = (from above table)
    Click on F8(EXECUTE)
    now the actual process is set to gree and the process chain will be triggered (rest of the PC with out repeating the step from where is was red).

  • Render Kit For WML/WAP

    Is there a WML/WAP Render Kit for JSF 1.2? I have a Nokia 3120 mobile phone which can access the Internet through the WAP Browser. Based on the specs page for the phone on Forum Nokia the phone's browser can also support XHTML. One area which I am not sure about in terms of support is JavaScript for the phone.
    In the Core JSF book (2nd Ed) it makes a mention of being able to change the scripting engine used for the JSF application, which means that JavaScript can be replaced with another scripting language (eg WML). If there is a WML Render Kit around is there an option in the NB 5.5.1 VWP to switch the Render Kit used by a JSF application?
    What could make or break creating a mobile web application in JSF is where JavaScript is being used which goes on to another question, where is JavaScript being used in JSF?

    JavaScript is used all over the place in JSF, but that is all under control of the renderer. So presumably if you find a WML renderer for JSF it will use an appropriate scripting language instead. I looked for somewhat casually a few weeks ago and did not find much of anything. Let me know if you have more success.

  • DoGet called twice on Tomcat Startup

    Hi,
    I have a problem with my Servlet doGet/doPost method being called twice (sometimes three times) on Tomcat 5 startup with J2SE 1.4 and Java SE 6. This problem happens on both, Firefox and Internet Explorer.
    I only have one Servlet (called ServletFrontController) in my descriptor, since I decided to use the Front Controller Pattern. This Servlet extends from a "base Servlet" which has all the init configurations. My deployment descriptor looks like this (I also have mappings which I haven't included here):
        <servlet>
            <servlet-name>MainServlet</servlet-name>
            <servlet-class>com.myprogram.ServletFrontController</servlet-class>
            <init-param>
                <param-name>config</param-name>
                <param-value>application.properties</param-value>
            </init-param>
        </servlet>My doGet / doPost / doHead methods from the base Servlet just delegate to the ServletFrontController "main" method, like this:
    public final void doGet(HttpServletRequest request, HttpServletResponse response) {
            try {
                process(request, response);
            } catch (Exception e) {
                handleException(e, request, response);
    }Does anyone had this problem and know why this could happen?
    Martin

    All,
    See post: [http://forum.java.sun.com/thread.jspa?threadID=720175|http://forum.java.sun.com/thread.jspa?threadID=720175]
    Might help.
    - JFK

  • Run servlet automatically when tomcat startup

    Dear all
    I need help to run servlet automatically when tomcat startup without starting even the application containing the servlet
    thanks in advance

    lol
    i've the same problem with my car,I want it to go ahead but without starting the engine and using all this gasoline...
    Seriously... the servlet IS almost your application
    when you start the server, the application starts to
    check the init() method of the servlet Interface
    and the "load-on-startup" parameter of the servlet in the deployment descriptor

  • Loading JNI library on Tomcat startup

    I am trying to load a JNI library on startup of servlet. I have written the following code in my servlet init function:
    public void init(ServletConfig config) throws ServletException {
    super.init(config);
    log.info("Loading native libraries...");
    System.loadLibrary("foo");
    log.info("Native libraries loaded...");
    On Tomcat startup, I see the "Loading native libraries..." message, but I don't see the "Native libraries loaded...". As if the system hung in the System.loadLibrary function.
    Anybody knows how to solve this problem?
    Martin

    The specification specifically forbids the use of native libraries in container objects. So you might want to take that into consideration with whatever you are doing.
    If you do want to do that then I would suggest loading it outside of the container. There is probably some configuration option that allows you to force tomcat to load something on start up.
    You might also want to consider if hot deploys are part of your future. If they are then you might want to put the interface inside of your own custom class loader, so you can probably control the unload of the shared library.
    If you search the J2EE lists you will find that almost everyone states that JNI should not even be loaded into the server. Instead you should create a seperate application and use RMI to access it. Myself I think that is overkill, but I would probably consider exactly what I am interfacing to before making that final decision. If your JNI library blows up it will take down the entire server (which is why the spec forbids it.)

  • Two render kit

    in my application default render kit is adf.core
    <default-render-kit-id>
    oracle.adf.core
    </default-render-kit-id>
    and i'm using another datagrid component of rcfaces
    if there is no default render kit is defined, the componet is working fine..
    like table soring...drig page navigation .
    by if i use
    <default-render-kit-id>
    oracle.adf.core
    </default-render-kit-id>
    then grid is showing correctly but, while sorting sowing error
    No Renkit Found!
    2007-10-10 17:59:19 StandardWrapperValve[Faces Servlet]: Servlet.service() for servlet Faces Servlet threw exception
    java.lang.IllegalArgumentException: ContentTypeList does not contain a supported content type: text/javascript
         at org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlRendererUtils.selectContentType(HtmlRendererUtils.java:1043)
         at org.apache.myfaces.renderkit.html.util.DefaultAddResource.writeResponse(DefaultAddResource.java:807)
         at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:162)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
         at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
         at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
         at java.lang.Thread.run(Thread.java:595)
    how can i solve this..
    is it possible to use two render kit ??
    is so how i can define that??
    thnx in advance

    JavaScript is used all over the place in JSF, but that is all under control of the renderer. So presumably if you find a WML renderer for JSF it will use an appropriate scripting language instead. I looked for somewhat casually a few weeks ago and did not find much of anything. Let me know if you have more success.

  • Initialize a web service when Tomcat startup

    Hi,
    I have a web service, built using Axis 2 1.2, that will do all the initialization at the first service call (e.g. create new database tables, create JAXB objects, etc), but it's taking too much time to do those tasks (at least twice slower than a normal service call with everything ready).
    i was wondering if i can do the initialization at Tomcat startup, instead of doing it at the first service call, so that the first service call could always get the highest possible performance..
    Thanks..

    problem resolved... i've created a servlet class to initialize everything, and i have modified web.xml to call this servlet class when tomcat startup.

Maybe you are looking for

  • ABAP Code in Start Routine to fill a field

    Hello, with the following code in the start routine in BW3.5 I am trying to fill Intercompany-Indicator based on Distribution Channel. The main code is marked bold. Distribution Channel = DISTR_CHAN InterCompany-Indicator = G_CWWR14 Pls help. Thanks.

  • Signed and unsigned applet

    Hi all, I want to create an applet that is firstly loaded as a normal (i.e., unsigned) applet. The user can use several features of the applet without seeing a security warning dialog. But when the user uses a certain feature of an applet (such as sa

  • Partial Page Caching in 902

    What, if Any, partial page caching using ESI tags can be done in Portal V2 or with the PDK?

  • Acrobat Pro CC failed to install

    Exit Code: 7 Please see specific errors below for troubleshooting. For example,  ERROR: DW006 ... -------------------------------------- Summary -------------------------------------- - 0 fatal error(s), 2 error(s) ----------- Payload: Acrobat Profes

  • Locked iPhone5 from UK, now in Finland

    My mother bought an i Phone 5 in the UK, but she passed away 2 months ago. I travelled from Finland to empty her house and brought the phone back to Finland with me. I can't get the phone to work with my finnish operator sim card (even though i order