Switchting from Reference implementation to MyFaces

Hi,
one year ago I developed a JSF-software using Tomcat 5.5.7 and SUNs reference implementation, which worked fine. Now I try to replace it by MyFaces and I get this error navigating to the first page:
javax.faces.FacesException: org.apache.jasper.JasperException
org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:425)
org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:234)
org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:352)
javax.faces.webapp.FacesServlet.service(FacesServlet.java:107)
There is no protocol entry in the TOMCAT logs directory. The only thing I did was replacing the related jars, which should be the only thing to do, as I understand the concept ;-). Any idea what the reason could be?
Thanks
Thorsten

Here's a decent discussion of listeners in TLDs. Ideally you should only put listeners relevant to a particular taglib in the associated TLD. So it would be wise to move the MyFaces Listener up to the web.xml, because it's not tied to any particular taglib. But in this case you're correct, the taglib listeners are being invoked in addition to any listeners you may have defined directly in the web.xml
http://www.phptr.com/articles/article.asp?p=26118&seqNum=6&rl=1
I generally think of TLDs as descriptor files that provide required definitions for a particular taglib (namespace, individual tag info), metadata info that may be useful for development and debugging tools (assorted optional meta-data for the tags), and any instructions for web-application global behavior that may be needed to support the individual tags (listeners)
Regards,
Peter

Similar Messages

  • Calling a servlet from a JSP page using the J2EE reference implementation

    I have a JSP with an include tag as follows: <jsp:include page="servlet/ConnectionServlet" flush="true" />
    When I use JRUN it works fine. I created an ear file and ported
    the application to the J2EE reference implementation. When running the app under the J2EE reference implementation the ConnectionServlet is never called. I figured it must a deployment issue. I tried adding the ConnectionServlet.class file to the WEB-INF\classes file as servlet\ConnectionServlet.class but the JSP still can't find the servlet. Any ideas where I've gone wrong? TIA, Joe

    I have a JSP with an include tag as follows:
    <jsp:include page="servlet/ConnectionServlet"
    flush="true" />Basically, WEB-INF/classes gets added to the classpath, so the directory structure under this folder should be identical to your package structure. If the ConnectionServlet.class is not actually in a package, then it should be directly in WEB-INF/classes (ie if "servlet" isn't actually the name of your package, don't use a WEB-INF/classes/servlet/" directory).
    Then try taking out the "servlet" from your include tag, so you just have page="/ConnectionServlet" (not sure about the leading slash - try experimenting!)
    if this doesn't work, try adding this to your WEB-INF/web.xml file:
    <web-app><!-- the web-app tags may already be there - don't add more -->
    <servlet>
    <servlet-name>ConnectionServlet</servlet-name>
    <servlet-class>your.full.package.here.ConnectionServlet</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>ConnectionServlet</servlet-name>
    <url-pattern>/ConnectionServlet</url-pattern>
    </servlet-mapping>
    </web-app>
    Good Luck!

  • BUG: JSP disappears from design view with MyFaces / Tomahawk

    Hi,
    When I try to create a JSF JSP in design view (as opposed to code view) using MyFaces and Tomahawk 1.1.3, the design view will blank and display "Type, paste or drag and drop content onto this blank....". This usually happens after I've dragged half a dozen JSF outputlabels and inputtext boxes. The code still exists in code view, and will even compile and deploy ok, it's just the design view that stops working. The design view usually blanks while I'm switching between the code tabs at the top of the screen, although I'm fairly sure it blanked as I dropped a textbox onto the form once.
    I've restarted JDev, tried to create a second page, clicked refresh etc but I can't get it back. This has happened starting from scratch 3 times now.
    I've switched back to the builtin reference implementation JSF (and no Tomahawk), and JDeveloper works fine, so it seems to be a problem using MyFaces. I've added MyFaces and Tomahawk via Manage Libraries.
    This Oracle article - http://www.oracle.com/technology/products/jdev/101/howtos/myfaces/index.html
    states that the RI version can't be swapped out in JDev Developer Preview version but I understand that's not true now?
    I'm using :-
    JDeveloper SU4
    java 1.5
    Windows XP SP1
    Thanks for any help.

    I found the answer. I went to View, Style Rendering and clicked several of the boxes  Display Media was one.

  • Support for SWF Verification in the reference implementation server

    The Server for Protected Streaming provides a way to configure a whitelist of allowed SWF hashes.  However, from what I can tell, the reference implementation server does not have this capability.  Any suggestions on how to implement SWF Verification in the reference implementation server ?

    To use SWF whitelists with the Reference Implementation, set the SWF  whitelist in a policy, and use that policy when packaging the content.  When issuing a license, the Reference Implementation will use whatever  restrictions were specified in the policy at packaging time.  Alternatively, since the Reference Implementation ships with source  code, you can modify the server so you can specify the SWF whitelist  information at the time the license is generated.

  • Connecting JMS to J2EE Reference Implementation 1.3 beta

    Is it possible to write JMS client talking with J2EE server without having in path j2ee.jar? Something like remote small client communicating with the server due JMS? Do I have to use some third party
    software (I have swiftMQ in mind) for this? If somebody have configuration for swift bridge to J2EE
    Refernce Implementation can you share it?

    The JMS service provider that comes with J2EE SDK 1.3 is only a reference implementation of the JMS API.
    In a real application system, one will be using a JMS service provider from some vendor. Preferably one that is certified to be J2EE compatible.
    In fact, this is true as such for anything in j2ee.jar Through j2ee.jar, Sun provides a reference implementation of J2EE APIs with its J2EE SDK and in a real application one will not have j2ee.jar in the client or server classpath. Instead one will use jar files specific to the vendor that one has chosen.
    Specifically about swiftMQ, as per Sun, it is not a J2EE licensee. swiftMQ is JMS 1.0.2 compliant. But it is not certified to be J2EE compatible.
    Refer http://java.sun.com/products/jms/nonlicensedvendors.html for more details.

  • Where can I get a reference implementation of XQJ

    Where can I get a reference implementation of XQJ
    - Raees Uzhunnan

    Reference implementation of XQJ is not available yet. When it becomes available, you can find it from the JSR XQJ page (http://jcp.org/en/jsr/detail?id=225).
    Regards,
    Geoff

  • Inconsistency using SUN Rowset Reference Implementation

    I am Using the RowSet reference implemention with Oracle Database.
    I am having a class which takes a input in form of XML adhering to the webrowset format.
    The xml contains some records to be inserted , some records to be updated and some records to be deleted.
    This xml is then fed to a WebRowSet using the webRowSet.readXml method which takes a Reader as a parameter. I am using a StringReader here.
    Here is the code snippet:-
    public void executeUpdate(String webRowSetXML)throws SQLComponentException{
    System.out.println(" webRowSetXML "+webRowSetXML);
    StringReader sr = new StringReader(webRowSetXML);
    WebRowSet webRowSet = null;
    try {
    webRowSet = new WebRowSetImpl();
    webRowSet.readXml(sr);
    webRowSet.acceptChanges(connection);
    } catch (SQLException e) {
    // TODO Auto-generated catch block
    e.printStackTrace();
    I found here that the insertion and updating works without any problem , but the deletion doesn't work.
    Then to study this problem , i wrote a program with two WebRowSets, one will be the producer of the data and the other will be the consumer.
    the first WebRowSet will read the data from the data source , delete a record using the following piece of code:-
    wrs1.absolute(6);
    wrs1.deleteRow();
    And then i generate a String XML using the writeXML method.
    Then i feed this xml to the readXML method of the second WebRowSet and i call the acceptChanges method of the second WebRowSet. But the record doesn't get deleted.Also after printing the xml from the second WebRowSet , the <deleteRow> tag is absent from the xml.
    The same condition works properly for the insert and update operation and the respective <insertRow> and <updateRow> methods appear in both the xml's generated from both the WebRowSet's.
    Is this a bug in the webRowSet implemention or is it a problem of Oracle? Or is it that something else needs to be done for the delete operation to work.
    I tried the same thing with Pervasive SQL instead of oracle. Here only the insert operation works.
    Any body please help me in solving this problem...

    http://java.sun.com/j2se/1.4.1/docs/api/javax/sql/RowSet.html
    From the sun desc above.
    The RowSet interface is unique in that it is intended to be implemented using the rest of the JDBC API. In other words, a RowSet implementation
    is a layer of software that executes "on top" of a JDBC driver.
    Implementations of the RowSet interface can be provided by anyone,
    including JDBC driver vendors who want to provide a RowSet
    implementation as part of their JDBC products.
    rykk

  • Usage of content management reference implementation

    Has anyone used the built-in, reference implementation, content management
    system that comes with WLPS 3.5 in a production environment... instead of
    using Documentum, Interwoven, etc.?
    Asides from cost, what are other factors were in favour of the reference
    implementation?

    Hi Suchitra,
    You would need to look at the BI statistics data. Check these links:
    http://help.sap.com/saphelp_nw04/helpdata/en/f2/e81c3b85e6e939e10000000a11402f/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/8c/131e3b9f10b904e10000000a114084/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/f0/3c8c3bc6b84239e10000000a114084/plain.htm
    Refer this How-To doc on BW Ststistics:
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/5401ab90-0201-0010-b394-99ffdb15235b
    Bye
    Dinesh

  • Reference Implementation: Cannot find flashaccess-refimpl.properties

    [ Problem ]
    I’ve just downloaded the latest drop of Flash Access. I have created a new project in Eclipse so that i can make changes to the reference implementation. When i access the following URL from a browser:
    http://localhost:8080/flashaccess/license/v1
    I get an error: "Could not find server properties". The following line of code in "RefImplAbstractReqHandlerServer.java" cannot find the server properties files:
    InputStream propsInputStream = Thread.currentThread().getContextClassLoader().getResourceAsStream(propertiesFileName);
    I have added the "resources" directory that contains flashaccess-refimpl.properties to my classpath. But i still get the same error.
    I’m guessing i have missed something. Does anyone have any suggestions to how i can overcome this error?
    [ Solution ]
    I am assuming you were adding the "resource" directory into the "classpath" by
    project property -> Java Build Path -> add class folder. This way, the resource directory is just not with the web container’s classpath.
    With Eclipse IDE, when i go this way, it works.
    1. go to "Run" -> Run Configuration ->"Apache Tomcat"( I am using tomcat)
    2.  select the Server Instance you are running the refimpl
    3. click the "classpath" tab
    4. in the "User entries" add the resource folder by "advanced->add folder"
    Then, restart the refimpl.

    Hi 高麻雀,
    You can edit the properties of configuration baselines and configuration items only if they were created at the same Configuration Manager site. The icons will have a lock symbol, and you can view their properties but not edit them in the following circumstances:
    They have been imported from Microsoft System Center Configuration Manager 2007 Configuration Packs.
    They have been imported from an external source, such as the Configuration Manager 2007 communities.
    They have been imported from another Configuration Manager 2007 hierarchy.
    They have been authored externally and then imported.
    They have been inherited by a parent site in the same Configuration Manager 2007 hierarchy.
    Solution
    Although this behavior is by design, you can modify imported data in the following ways: Refer the below link for details:
    Problems Editing Configuration Data -->: http://technet.microsoft.com/en-us/library/bb633142.aspx
    Related post:
    http://social.technet.microsoft.com/Forums/en-US/configmgrdcm/thread/7ea89eea-00f4-436f-a055-b72ab14dfa97
    Rajeesh M | My Tech Blog: ScorpITs |
    LinkedIn Please take a moment to “Mark as Answer” and/or “Vote as Helpful” on the post that helps you. This helps other community members reading the thread and recognises useful contributions. Thanks!

  • License for using JMX Remote API  Reference Implementation

    Is JMX Remote API Reference Implementation open source one?
    Can we use JMX Remote API Reference Implementation with commercial products?

    Hi,
    I am not a lawyer.
    If you're referring to the JMX RI binary downloads available from here:
    http://java.sun.com/javase/technologies/core/mntr-mgmt/javamanagement/download.jsp
    then please click on the download button and then review the license agreement.
    You will see that this is not the GPL license.
    As such these downloads are not "open source".
    However the JMX API is also part of the OpenJDK project - and the OpenJDK project
    itself is open source. The OpenJDK project has a NetBeans IDE JMX project that will
    let you easily work with the JMX sources.
    See http://openjdk.java.net/groups/jmx/ for more details.
    You can review the OpenJDK license agreement and download the OpenJDK sources
    from http://openjdk.java.net/
    The OpenDMK Project contains an open source implementation of the JMXMP
    connector for the JMX API - which is the optional JMX connector defined in the
    JMX Remote API 1.0 specification. The JMXMP connector is not part of the OpenJDK
    project, but is open sourced by the OpenDMK project.
    You can review the OpenDMK license agreement and download the sources and
    binaries of the OpenDMK project from here:
    http://opendmk.dev.java.net/
    For an exact description of what you can or can't do with any of these various sources
    and binaries, please read the license agreements that come with each of them.
    I hope this helps,
    -- daniel
    http://blogs.sun.com/jmxetc

  • Where do i find the SAP JDO reference implementation?

    Where do i find the SAP JDO reference implementation?

    I know that, but
    for example sun realese this
    https://sdlc5b.sun.com/ECom/EComActionServlet;jsessionid=4464320EBFC4EB51678647323C0135B7
    exist something from SAP and it´s JDO?

  • How to change the path of sysprep files that were copied to reference computer when i capture the image from reference.

    Dears ,,
    how to change the path that sysprep were copied to reference computer when i capture the image from reference.
    Should i modify some codes in LTIAPPLY.wsf? how to modify it?
    Thanks.

    Sysprep and capture has *Three* steps.
    1. Run sysprep on the local machine (easy).
    2. Copy WinPE down to the local machine so we can reboot into winpe for capture.
    3. Capture the drive in an *offline* state from within WinPE.
    What is most likely happening is that you are having problems with step #2. 100MB is *WAY* too small to copy down WinPE. By default MDT will make this System partition much bigger, 499MB. IF you install Windows 7 from the default media. IT will only create
    a 100MB partition.
    By default MDT 2012 Update 1 and greater *should* recover to a fallback drive with the OS on it, however if you are running older versions that might not happen correctly.
    If you are still having problems, copy your BDD.log file to a public share like OneDrive and copy the link here.
    Keith Garner - keithga.wordpress.com

  • Settlement rule copied from reference internal order

    Hi
    How to manage that no settlemnt rule will be copied from reference order into the new internal order I´m creating in transaction KO01? Is it a configuration issue?
    Please advise.
    Anna

    HI,
    the reason for creating an internal order "with reference" is to transfer all infos to the new order (even the settlement rule). So after "creation with reference" the settlement rule is copied. If its not the one you need:
    1: take a reference order that fits your requirement.
    2: for order creation without reference use a "model" order, this "model" order can be assigned to the order type in T-code KOT2_OPA and works similar as a reference, but if the model order does not contain a settlement rule, the created order also does not).
    3: change/delete the created settlement rule from the new order.
    Best regards, Christian

  • MIDP 2.0 Reference Implementation building on the Win2k

    Hi
    I builded MIDP2.0 Reference Implementation in the environment following below,
    cygwin: 1.5.10_3
    MIDP_DIR c:\j2me\midp_2-0
    KVM_DIR c:\j2me\CLDC_1-0-4
    ALT_BOOTDIR c:\jdk1.3.1
    and I received error message.
    Microsoft (R) Incremental Linker Version 6.00.8447
    Copyright (C) Microsoft Corp 1992-1998. All rights reserved.
    ... jcc_classes/JavaCodeCompact.class
    Note: Some input files use or override a deprecated API.
    Note: Recompile with -deprecation for details.
    ... searching updated .java files
    ... compiling 256 .java files
    ... preverifying 298 .class files
    ... classes.zip
    Can't open perl script "c:\Program": No such file or directory
    make: *** [classes.zip] Error 2
    I think that the problem is cause by wrong PATH environment
    But I don't know solution.

    something is installed in a folder with a space in it. for example, it will be installed in "c:\program files\...". you may be able to surround the part of the path with quotes. without knowing the program thats causing the problem its gonna be tricky to figure out how to fit it. it could be a path thing (i have loads of development stuff installed with no path problems) or it could be another environment variable.
    it could be perl itself. i can't remember if i had problems with that - i might have done. i think i installed perl into c:\perl rather than c:\prorgam files\perl (for example) to get round problems. shrug, i can't remember now.

  • Create material from reference material for all org.levels

    Hi,
    i want to create a material from a reference material with all MARA, MAKT, MARC, MBEW, MARD, MARM, MVKE, MLAN, MLGN and MLGT content for all organizational levels of the reference material.
    For instance, my reference material has 200 MARC entries. All these entries should also be created for the new material.
    Transaction MM01 will copy from reference but only for 1 organizational level. To create 200 plants manually with MM01 is not an option.
    I have to develop a copy from reference transaction, where i select the new material number, the reference material number and the required tables (MARA, MAKT, etc)
    I can read the current tablevalues and insert new entries into the required SAP standard tables, but that is not nice.
    Is there another option to do the job ?
    I know there are bapi's, but these are related to one org.level. For 200 plants, i have to execute 200 bapi to get the data from the reference material and another 200 bapi's to create the new material.
    with kind regards,
    Hans

    Hi Goutam,
    You can use the BAPI BAPI_MATERIAL_SAVEDATA, which will create/update the material. You can pass the reference material in the filed BAPI_MARA-PL_REF_MAT. And you can pass reference material for all view like this.

Maybe you are looking for