JSF in WebSphere

I have deployed a JSF application in WebSphere 6.1 . I created a shared library through the console which has jars
tomahawk-1.1.3.jar
myfaces-impl-1.1.4.jar,
myfaces-api-1.1.4.jar
The application is mapped to this Shared library.
When i access one of the jsf page, it throws following errors:
Error 500: java.lang.Error: Unresolved compilation problems:
The import javax.faces cannot be resolved The import javax.faces cannot be resolved HtmlDataTable cannot be resolved to a type
i have the import javax.faces in the bean class.
Any suggestions on how to resolve this error?
Thanks.
Prashant

Try:
http://www-128.ibm.com/developerworks/websphere/techjournal/0401_barcia/barcia.html

Similar Messages

  • Deploying JSF in Websphere

    Hi,
    I am getting below exception While deploying JSF application in Websphere.
    [5/7/13 14:19:10:585 IST] 0000002d FacesConfigur I Reading config /WEB-INF/faces-config.xml
    [5/7/13 14:19:10:636 IST] 0000002d FacesConfigur E Circular references detected when sorting application config resources. Use absolute ordering instead.
    [5/7/13 14:19:10:638 IST] 0000002d AbstractFaces E An error occured while initializing MyFaces: Circular references detected when sorting application config resources. Use absolute ordering instead.
    javax.faces.FacesException: Circular references detected when sorting application config resources. Use absolute ordering instead.
    at org.apache.myfaces.config.FacesConfigurator.applySortingAlgorithm(FacesConfigurator.java:1232)
    at org.apache.myfaces.config.FacesConfigurator.orderAndFeedArtifacts(FacesConfigurator.java:1016)
    at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:905)
    at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1620)
    [5/7/13 14:19:10:775 IST] 0000002d servlet E com.ibm.ws.webcontainer.servlet.ServletWrapper init Uncaught.init.exception.thrown.by.servlet
    [5/7/13 14:19:10:768 IST] 0000002d FfdcProvider W com.ibm.ws.ffdc.impl.FfdcProvider logIncident FFDC1003I: FFDC Incident emitted on E:\IBM\WAS8.0\AppServer\profiles\AppSrv02\logs\ffdc\server1_1a04d15d_13.05.07_14.19.10.6708028578684570000270.txt com.ibm.ws.webcontainer.servlet.ServletInstance.init 181
    [5/7/13 14:19:10:798 IST] 0000002d webapp E com.ibm.ws.webcontainer.webapp.WebApp commonInitializationFinally SRVE0266E: Error occured while initializing servlets: {0}
    javax.servlet.ServletException: SRVE0207E: Uncaught initialization exception created by servlet
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.init(ServletWrapper.java:391)
    at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.init(ServletWrapperImpl.java:168)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.loadOnStartupCheck(ServletWrapper.java:1274)
    at com.ibm.ws.webcontainer.webapp.WebApp.doLoadOnStartupActions(WebApp.java:575)
    at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:775)
    at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:905)
    at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1620)
    Caused by: 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:172)
    at javax.faces.webapp.FacesServlet.init(FacesServlet.java:112)
    at com.ibm.ws.cache.servlet.ServletWrapper.init(ServletWrapper.java:238)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.init(ServletWrapper.java:329)
    ... 113 more
    Please help me to resolve this problem.

    Now, got that resolved. As I stated in my previous post, I had to change the classloading policy to "Parent Last" and
    found that mojarra is now loaded (see the last line):
    [07/10/09 11:00:12:013 EDT] 00000014 ApplicationMg A WSVR0200I: Starting application: JSFEAR
    [07/10/09 11:00:12:013 EDT] 00000014 ApplicationMg A WSVR0204I: Application: JSFEAR Application build level: Unknown
    [07/10/09 11:00:13:201 EDT] 00000014 ResourceMgrIm I WSVR0049I: Binding DefaultEJBTimerDataSource as jdbc/DefaultEJBTimerDataSource
    [07/10/09 11:00:13:248 EDT] 00000014 webapp I com.ibm.ws.webcontainer.webapp.WebGroupImpl WebGroup SRVE0169I: Loading Web Module: webJSF.
    [07/10/09 11:00:13:263 EDT] 00000014 WASSessionCor I SessionContextRegistry getSessionContext SESN0176I: Will create a new session context for application key SCD/webJSF
    [07/10/09 11:00:13:373 EDT] 00000014 FacesConfigur I org.apache.myfaces.config.FacesConfigurator feedStandardConfig Reading standard config META-INF/standard-faces-config.xml
    [07/10/09 11:00:13:497 EDT] 00000014 FacesConfigur I org.apache.myfaces.config.FacesConfigurator feedWebAppConfig Reading config /WEB-INF/faces-config.xml
    [07/10/09 11:00:13:513 EDT] 00000014 LocaleUtils W org.apache.myfaces.shared_impl.util.LocaleUtils toLocale Locale name in faces-config.xml null or empty, setting locale to default locale : en_CA
    [07/10/09 11:00:13:622 EDT] 00000014 FacesConfigur I org.apache.myfaces.config.FacesConfigurator handleSerialFactory Serialization provider : class org.apache.myfaces.shared_impl.util.serial.DefaultSerialFactory
    [07/10/09 11:00:13:622 EDT] 00000014 AbstractFaces I org.apache.myfaces.webapp.AbstractFacesInitializer initFaces ServletContext 'C:\Program Files\IBM\SDP75\runtimes\base_v7\profiles\profil_CGE\installedApps\cellule\JSFEAR.ear\webJSF.war' initialized.
    [07/10/09 11:00:13:701 EDT] 00000014 config I Initializing Mojarra 2.0.0 (SNAPSHOT 20090924) for context '/webJSF'
    Now I will be looking for what I have to set next...

  • JSF Hibernate websphere configuration

    I am new to JSF and implementing this in my new project. I am using MyEclipse6.0.1 as the IDE and adding JSF capabilities in the project with the wizard. I am using hibernate 3.1 and websphere6.1.
    I am testing configuration with a very small application. My application is not working. I treid to add all the jar files, but still it is not showing anything, I am using maven2 to build the project. In the console window of myeclipse I am getting Faces Servlet is unavailable.
    Please let me know all the versions that I have mentioned are working together or I need to add some other version jar files.
    I am really struggling lot with JSF. Please help me solve this problem.

    I am new to JSF and implementing this in my new project. I am using MyEclipse6.0.1 as the IDE and adding JSF capabilities in the project with the wizard. I am using hibernate 3.1 and websphere6.1.
    I am testing configuration with a very small application. My application is not working. I treid to add all the jar files, but still it is not showing anything, I am using maven2 to build the project. In the console window of myeclipse I am getting Faces Servlet is unavailable.
    Please let me know all the versions that I have mentioned are working together or I need to add some other version jar files.
    I am really struggling lot with JSF. Please help me solve this problem.

  • Websphere 5.0 and working with JSF??

    I looked through all the postings and saw where a lot of people are not able to run JSF in Websphere. Has anyone gotten it to work at all??
    I have been trying for awhile now and cannot get even a textfield to show up. I was also having problems in Tomcat 4 but by using this link...http://java.sun.com/j2ee/javaserverfaces/docs/Deployment_Guide.html...I was able to get Tomcat 4 working perfectly (which should be the Websphere equivalent). Of course everything works great in Tomcat 5 but that does not help. Thanks for any help :).

    I got the guessNumber sample to work on Websphere. I also was able to implement some screens
    on Websphere.
    Please ensure that you have the following in web-inf/lib directory.
    standard.jar
    jstl..jar
    jsf_core.tld
    html_basic.tld
    jsf-api.jar
    jsf-impl.jar
    web-facesconfig_1_0.dtd
    In addition, you will also need the Apache commons libraries. You can extract them from the
    JSF Beta samples WAR file.
    I also encountered strange problems in the beginning, but once I ensured that the correct versions
    of all libraries were in WEB-INF/lib, then I was able to implement some screens.
    Trust this helps,
    Ajay

  • JSF, JPF, Struts, SDO小探

    一直对这几个概念不是非常清楚,一直对学习JPF心存疑虑。这几天,花了一点时间,大致上看了一下这几个东西的文档,有了一点收获,和大家探讨一下。
    Struts:不用多说,大家都非常熟悉了。
    Service Data Object(SDO)是JSR235讨论的一种简化数据访问的结构。在Web应用中,可以使数据源对开发人员透明。
    J2EE标准的Java Server Faces(JSF),BEA的JPF,都是基于Struts的,那么有一些什么区别呢?
    JSF更多的是关注于页面的表现,很多结构和Struts非常相似。事实上,JSF的操刀者正是Struts的作者。可以在JSF中非常明显地看到,设计思路是在Struts上的提高和完善。比如,在Struts中,ActionForm事实上就是一个Bean,储存了数据。在JSF中,直接引入了Managed-Bean的概念,这些储存有数据的Bean可以直接放到页面上,这些Bean由程序员完成,美工只是直接把BEAN拖放到页面上,这样,进一步分割了Model和View,简化了开发过程,更加便于协作开发。
    BEA的JPF更多地注重页面和数据的绑定。事实上,绝大多数的动态Web页都涉及到数据的读取和存储,JPF封装了大量的数据绑定功能,也简化了这一类的开发。
    从IBM的红皮书上可以看到,现在IBM的所有涉及到JSF的例子,都用了WDO(WebSphere Data Object)。我的理解,这是SDO的一种。事实上,SDO还只
    是处于JSR状态下,IBM实现了部分的SDO规范的功能。在IBM的例子中,可以看到,通过JSF和WDO/SDO,页面可以很容易地绑定数据,显示数据。
    这一点,和BEA的JPF有异曲同工之妙。巧合的是,JSR235 SDO规范专家组的领头人正是BEA和IBM。
    由此,我得出如如下的结论:
    1、JPF是基于Struts的,将来会基于JSF
    2、JPF和Struts/JSF不是一个层面的东西,JPF是比后两者更高级的框架
    3、JPF在某种程度上,是BEA的SDO实现,将来的SDO正是规范中,必将有JPF的影子
    4、虽然IBM现在在热推JSF,但是其红皮书中承认,JSF目前还是非常新的技术,并不完善,还有待于得到广泛的支持。Apache正在开发JSF-Struts库,
    以便于Struts到JSF的迁移。所以,现在不必急追JSF,有了扎实的Struts知识,迁移到JSF不会太困难
    5、学习JPF是安全的,(这和我以前的观点不同,以前对于JPF了解不深刻,向BEA致歉),将来的SDO会有JPF的影子。
    欢迎大家讨论。

    都劳动高人了,荣幸荣幸。
    在JPF刚出现的时候,就得知BEA非正式地提供了可以迁移到Tomcat的工具。凭借BEA的实力,我毫不怀疑,将来的Java Control和JPF等,都可以顺利地移植到Tomcat或者WAS上运行,甚至连运行库都不需要,直接翻译成标准的Servlet代码。这是完全可行的。
    我前面所说的都是从程序员开发的角度谈,不涉及运行时兼容的问题。Beehive把Workshop Runtime开源了,大家都可以来研究了,非常有利于Workshop的推广。但是,并不是开源的东西一定可以成为标准,承认吗?Tapestry也很不错,也是开源的,但是偏偏Struts最为市场接受,成为了事实上的标准。
    我们是不是不能排除这样一种可能,Beehive开源了,也在一定程度上被广泛接受了,但是就是没有成为标准。成为标准的是JSF+SDO,假设这样。那么,作为程序员,我就有风险了。我花了时间精力,学习了Workshop Framework,也很精通Java Controls了。我毫不怀疑,我写的程序,可以被deploy到任何J2EE兼容的App Server上去。
    另一方面,移植的过程是很复杂的,谁都不能保证移植的程序100%可运行。但是客户的平台是多样化的,出于以后维护的考虑,比如客户是小公司,一直运行Tomcat,他的维护工程师只懂JSP/Servlet/Struts,不懂JPF,那么为了维护,他也希望我用他懂得技术开发。即使我的JPF应用顺利部署到他的Tomcat上,他对今后他将面对的维护也会有畏惧。我总不能强迫他学JPF吧。
    而且客户,都有一种惯性。用惯了.NET的,你向他推荐J2EE都很困难;同理,如果向他推荐非常先进的JPF,客户未必接受。
    我,作为程序员,有交流的问题。比如说,JSP/Servlet,只要是J2EE程序员,大家都懂。无论在Team内部,还是到dev2dev,developerWorks, TSS上,大家都用同样的语言,JSP/Servlet规范和相关的术语。同样的道理,Struts由于是事实上的标准,也是可以被无障碍交流的,大家都懂ActionForm, ActionServlet。但是,只要Workshop一天没有成为标准,就有可能成为一种外语。我在BBS上跟人讲,NetUI:XXXX,不是人人都懂,我讲JCS,JPF,别人就未必懂。我只能到dev2dev,找你Hilaser请教。
    其实,我认为,标准的含义对我而言,就是方便与人交流。UML语言诞生的初衷也是为了交流。虽然,大家都知道,JPF的底层就是Struts,但是偏偏封装后,名字改了,虽然都是巧克力,但是你说它叫“朱古力”,可我只知道他叫“巧克力”怎么办?那就要求我必须同时懂得Struts和JPF,自己给自己翻译了。或者用工具,把JPF转换成Struts,然后拿着机器生成的Struts代码和人讨论?
    谈到这里,所有问题的根出现了,那就是
    * BEA是否有足够的实力,把自己的专有技术推广成标准 ? *
    是要所有的人都接受,成为标准;而不仅仅是开源。
    这里有太多的非技术因素。且不说BEA的股价,庞然大物如IBM或者Oracle的态度。作为客户,他是否愿意押宝在BEA身上,明确BEA的JPF等技术就是将来的J2EE规范呢?恐怕比较难。即使庞大如IBM,客户也不会下这种赌注。客户一般都喜欢用成熟的技术。EJB2.0的规范出现是在哪一年?看看EJB2.0开始广泛运用又是在哪一年?
    这也是,WebLogic这么多年来备受青睐的原因,因为他的技术最标准。所以,我的建议是,在JPF明确成为事实上的标准前,还是持观望态度比较合适。因为JPF和基于J2EE规范的不同Implementation不同,JPF的API是独特的,事实上一个程序员如果只精通JPF,而不懂Struts和JPF的关系的话,那他就真的被绑在BEA上了。对于Struts、JSP/Servlet群来说,他是一个外星人。那么用漂亮的Workshop开发JPF的人,又有多少会想到去了解底层的Struts呢?
    其实,BEA为什么要重新搞一套特殊的API呢?Struts的不足,可以在保留Struts API的基础上,进行扩展,没有必要全部改头换面。保留Struts API的TAG要省多少事啊,再加上BEA的扩展,不一样可以吗。为什么全部换掉呢?
    JPF的技术真的不错,但是,我只了解大致原理,我不去看具体的语法API,我等它成为标准。

  • JSF URL redirection

    I want the user to type in the browser
    http://my.website.com
    which would be forwarded to this.
    http://my.website.com/CTOpsProd/faces/frames.jsp
    It would be great if someone could tell me a simple way to do this using JSF or websphere setup
    thanks

    Just add JavaScript code like location = 'CTOpsProd/faces/frames.jsp'; to Your index.jsp
    or use <jsp:redirect> tag.
    I want the user to type in the browser
    ttp://my.website.com
    hich would be forwarded to this.
    http://my.website.com/CTOpsProd/faces/frames.jsp
    t would be great if someone could tell me a simple
    way to do this using JSF or websphere setup
    thanks

  • Handling Exception/Runtime Exception in JSF

    Hi,
    Any good pointers to documents describing proper error handling.
    Not just navigation rules to an error.jsp file but also handling of runtime exceptions and exceptions in backing beans where you cannot use navigation rules (calling a method from JSF EL etc.).
    I am developing jsr 168 portlets using jsf on websphere portal.
    I can't get the error handling via web.xml to function and other places I can't manually make it go to an error.jsp in case of exceptions.
    How to handle the runtime exception in JSF.
    1. By including following tags in web.xml
    <error-type>
    <error-exception></error-exception>
    <error-loaction>/error.jsp</error-loaction>
    </error-type>
    its not working.
    2. If include the
    <%@page errorPage="../error/GenericError.jsp" %>
    in jsp page then
    it is not forwading to error page giving asaertion failure exception
    If we change the GenericError.jsp tag like
    <f:view>
    </f:view>
    to
    <f:subview>
    </f:subview>
    then it is going to error page but the
    action inside the error page is not getting called its backing bean
    Here is code of error.jsp
    <%-- jsf:pagecode language="java" location="/JavaSource/pagecode/JSPs/ErrorPage1.java" --%><%-- /jsf:pagecode --%>
    <%@taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
    <%@taglib uri="http://java.sun.com/portlet" prefix="portlet"%>
    <%@taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
    <%@ page isErrorPage="true" %>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
    </head>
    <body>
    <div class="errorMessage"><%= exception.getLocalizedMessage() %></div>
    <f:subview id="name">
    <h:commandButton action="#{OSPMTASecurityBean.cancel}" value="submit"/>
    </f:subview>
    </body>
    </html>

    If you would like to handle and navigate based on the exception type, this code would help you. btw I'm not familiar with portlet though.
    http://sourceforge.net/projects/optionzero
    http://sourceforge.net/forum/forum.php?forum_id=666191
    You can declare exception type and navigation in faces-config.xml in declarative manner like Struts global exception notion.
    Please let me know it's useful or not.
    thanks,

  • Useing  ajax technologies in webSphere studio application developer 5.1.2

    1>Tell me how to implement ajax with JSF in webSphere studio application developer 5.1.2.
    2>Give me that information details with exmplex.
    3>If required any plagging for that ,how to collect that requirement file.

    Look around for existing Ajax for JSF frameworks, such as Ajax4jsf, then read its documentations.

  • Migrating Model 2 Architecture

    Hello,
    I am writing an application which needs to be migrated to different servers.
    If I were to write this using model 2 architecture, can the framework be encapsulated within the application, or would I need to install the framework on each server.
    I suppose what I am asking is whether frameworks can be installed at the level of a Web-App, or are they installed at the root of the Web-Server?
    Thanks,

    Hmmm,
    Well I wanted to learn more Java rather than someone
    elses tags.
    :), tags are a lovely feature of jsp. I agree that writing it is far far pleasant than using other people's.
    Im also put off by the number of simple things that
    people get stuck on in these forums, really basic
    things that they dont know how to achieve with the
    framework.
    Agreed, but for every technology there's a learning curve and that probably is steepest in java. You will be surprised to see that there are an equal number of 'Cant get Hello World to Work' threads in the core java forum, but that shouldnt be a cause for a person to shun java :)
    Also, I tried using Studio Creator, which uses JSF, I
    got really nasty un-recoverable errors, which I could
    not resolve because their source lay in the third
    party code.I would rather recommend to lay off jsf for now atleast until we begin to see some good server side support for that. I know of atleast one project that started off with jsf on websphere and then had to quickly switch to struts for want of support and bugs on jsf.
    >
    Also, once you tie your app into a framework your
    stuck with it, which also put me off a little.
    Perhaps I will re-visit struts, I paid for a book on
    the subject so may as well get something from
    it.....
    Dont you find using Java classes pushes your
    knowledge??
    There is a world of API's to play with, even you cant
    know them all !!Yes, agreed. If asked to create a web application using struts, I may have to turn to the books/tutorial for it.
    However I had studied it once and the way they use tags + beans is an incredible thing - you define a bean, bind it to a scope and use the bean in your tags (the html tag library is awesome)
    Now it would have taken a lot of learning the core api to graduate to a level where you could have thought this up of your own. Every framework has a neat way to do things and even if you dont use them you can learn from them and that makes you better - you would learn to use the apis better.
    Personally the way I think of it is - the core apis are the underlying force and you have to master them. I have seen lots of people who are supposedly good on struts and who dont know what scope bindings mean :)
    The frameworks gives you a way to harness the apis to make your web application so easily configurable and lends a touch of elegance to it. You neednt use it, but you can learn from it.
    I am not a great fan of frameowrks, btw :). IMO they are over engineered the level of which is inversely proportional to the documentation ;)
    cheers,
    ram.

  • How to include page fragment for JSF application deployed on WebSphere?

    Hi all,
    I have the following urgent JSF problem, I hope that you can support me in solving it;
    - I have JSF application need to be deployed on IBM WebSphere 6.0.1 Application Server.
    - I have the tag:
    <jsp:directive.include file="Actions.jspf"/>
    which includes a page fragment.
    - This is working file with Tomcat 5.5 & Sun Application Server 9, but it didn't work on WebSphere and each time the page fragment contents rendered as text, I mean that the JSF components in the fragment doesn't converted to html controls.
    Please help...
    Message was edited by:
    AHmadQ

    We use:
    <%@ include file="../WEB-INF/jspf/head.jspf" %>where the head.jspf is a jsp fragment like:
    <% response.addHeader("Cache-Control", "no-cache"); %>
    <% response.addHeader("Pragma", "no-cache"); %>
    <% response.addIntHeader("Expires", -1); %>
    <html>
    <head>
         <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
         <meta http-equiv="Pragma" content="no-cache" />
         <meta http-equiv="Expires" content="-1" />
         <title><%= pageTitle %></title>
         <link href="../style/style.css" rel="stylesheet" type="text/css" />
    </head>Cheers,
    Illu

  • WebSphere Custering and JSF Backing Beans

    Hello All,
    Can anyone enlighten me on exactly how backing bean state is maintained by JSF?
    In what scope does JSF store the backing beans? (session perhaps)
    Does it make sense to use JSF without stateful backing beans?
    What would happen if a client post did not find its corresponding backing bean on the application server calling it?
    Background:
    In a clustered WebSphere Server environment, a client post may be directed to any one of the machines in the cluster. If the client post gets directed to a machine other then the machine that originally sent the client a response, the page will not find the corresponding page beans.
    It is possible to serialize session beans in WebSphere and have each machine share its memory with all the boxes in the cluster. However, this practice is not permitted in some environments.
    Any thoughts? Thanks in advance.

    I am probably not an expert on the subject. But here are some thoughts:
    1. A backing bean can have (application, session, request or None) as a scope.
    Less app or session scope beans the better (from server perspective). But
    There are practical reasons why you would want to use them in many cases.
    2. JSF supports Client State Saving mode. But keep in mind the overhead
    Involved (serialization, de-serialization, bandwidth,...).
    3. You probably need to read about WebSphere load balancing capability. From
    what I know it is somehow sophisticated. People typically use session affinity
    to force requests initiated by same session to be served by the same app
    server (enforced by network, hardware/software tools available to do so,...). Of
    course with failover mechanism to ensure high availability.
    Hope that helps!

  • How to adapt Marty Hall's jsf-blank project to WebSphere 7?

    Marty Hall had a great idea for getting your feet wet in JSF2: He provides a project named jsf-blank that you deploy in Eclipse on a Tomcat container.
    In 10 minutes you are running a JSF 2 project!
    How can I deploy this jsf-blank project on WebSphere 7? I tried a quick-and-dirty, but it seems to fail on mapping.
    Thanks
    Eli

    How can I deploy this jsf-blank project on WebSphere 7?There just isn't an easy way out. The project should deploy with no problems of Websphere is truly compliant - if something fails then you have no choice but to try and figure out what exactly it is that Websphere doesn't like about the deployed application. It might be a configuration issue, it might be a JVM issue, it might be a rights issue, who knows.
    If you want further help then you might want to try and post the errors you are getting.

  • JSF Components are not being rendered - Websphere

    First, I don't mean rendered as in rendered="true'' What I mean is that a page I've created doesn't show any of the components rendered. Even while looking at the source, the HTML is not generated.
    Example: test.jsp
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
    <%@ taglib prefix="af" uri="http://xmlns.oracle.com/adf/faces" %>
    <%@ taglib prefix="afh" uri="http://xmlns.oracle.com/adf/faces/html" %>
    <%@ taglib prefix="t" uri="http://myfaces.apache.org/tomahawk" %>
    <f:view>     
         <afh:html>
         <afh:head title="CIAS Case Management"/>
         <afh:body >
         <h:form id="createRfiForm">      
         <h:commandButton id="button" action="#{summaryRfiAction.promptCreateNewRfi}" value="Create New RFI"/>     
    </h:form>
         </afh:body>
         </afh:html>
    </f:view>
    When viewed the page is blank. The url I goto is :9080/cias/secure/test.do
    However if I put "Hello World" anywhere (I put it under the af:outputText) it will show up, so I know that the faces-config-nav is working correctly (it maps the .do to .jsp in terms of the file). What I don't think is working correctly is the invocation of the FacesServlet. In web.xml I have this defined.
    <servlet>
              <description>JSF controller</description>
         <servlet-name>FacesServlet</servlet-name>
         <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
         <load-on-startup>1</load-on-startup>
         </servlet>
         <!-- Requests handled by JSF -->     
         <servlet-mapping>
              <servlet-name>FacesServlet</servlet-name>
         <url-pattern>*.do</url-pattern>
         </servlet-mapping>
    Anyone with any thoughts? This works in tomcat (yay apache), but doesn't work when I use Websphere.

    Hi,
    I've the same problem using WepSphere AppServer V6.1.0.5 on Linux.
    Are there some solutions/ideas solving this problem?
    The Application runs on Tomcat, JBoss, Glassfish but not on WAS.
    SystemOut.log shows only this:
    [16.02.07 15:31:02:185 CET] 00000028 ServletWrappe I SRVE0242I: [application] [application] [index.jsp]: Initialisierung erfolgreich.
    [16.02.07 15:31:02:998 CET] 00000028 ServletWrappe I SRVE0242I: [application] [application] [login.jsp]: Initialisierung erfolgreich.
    index.jsp redirects to login.jsp.
    tia,
    Andreas

  • JSF 1.2 on Websphere 6.1

    We have an application which uses JSF 1.2. It works fine on Tomcat, but when we want to deploy it on Websphere 6.1, it fails.
    I've done some research on the internet and I was wondering if it's even possible to do this. We added a shared library to the server and make sure the classloading was correct. The problem still persists. I've found something on the net which stated that JSF 1.2 needs an application server who meets the JEE5 specificiations, which Websphere 6.1 doesn't.
    Anybody else tried this? Because it's very urgent :-/.

    If I recall correctly WAS 6.1 just supports Servlet 2.5 / JSP 2.1. You must be doing something wrong. E.g. having some old versioned JAR's spreading out over the classpath which took preference in classloading. It would be helpful if you elaborate a bit more about "it fails".

  • Running Oracle Reports from JSF Application in Websphere Application Server

    Hi everybody;
    in our company we are developing jsf applications and we want to use our existing Oracle reports. Reports are deployed in Oracle Application Server 10G. Is there a way to call those reports from our jsf applications deployed in websphere application server.

    Calling reports is just constructing and submitting a URL. So constuct the url in your jsf app or create static hyperlinks in your jsf app to go to the needed url. The url should look something like:
    http ://hostname:7777/reports/rwservlet?report=myrep.jsp&userid=scott/tiger@dev10g&desformat=html&destype=cache

Maybe you are looking for

  • AR open items closed off

    Dear Expert, Please be clarified what AR open items closed off is. It seems there is a process to do AR open items close off at month end or year end. Thanks

  • Input ready queries not working after upgrading to 7.4

    Hello Gurus, for my application I have put the queries in WAD. Everything was working till 7.2. After upgrading to 7.4 I recieve error for ready to input queries. Rest of the queries are fine. Even in Analyzer I dont get the option to save the Values

  • Logs files are not visible through AS Server Console.

    Hello, Server = Solaris 10 Oracle AS 10.1.3.4 (clustered) Logs are generated in "/apps/oracle/product/as1013/opmn/logs/EEW_DTP_EEW_DTP_1/EWII_DTP~EEW_DTP~EWII_DTP~1.log" but not visible in Oracle EM (AS console). Applications in Instance: AS1013.oxdo

  • Business process monitoring such as POs and inbound webservices

    What is the best way to monitor a business process for error conditions to automaticall.report status. I would like to monitor across components and would like to be able to monitoring it realtime. Thanks Weyland Yutani

  • Error in problem  class important

    Hi Gurus, we are facing problem while activating the transferstructure when are activating using the program: RS_TRANSTRU_ACTIVATE_ALL we are getting error in problem class important. All Thaughts are considered. Regards, Ajay.