Thanks for the suggestion. That error is gone. I tried to run the application with few changes in the web.xml and faces-config.xml . I get the following exception
Did not realize init() exception thrown by servlet CalendarSample: javax.servlet.UnavailableException: Exception during portlet initialization: java.lang.ClassCastException: org.apache.myfaces.context.FacesContextFactoryImpl
So I added the following in faces-config.xml
<factory>
<faces-context-factory>
org.apache.myfaces.context.FacesContextFactoryImpl</faces-context-factory>
</factory>
Even then I get the same error. I start getting this error after I add jsf-portlet.jar in my lib folder. If I delete this jsf-portlet.jar file, it doesn't forward to my initial page.
Thanks for the help
Latha
DST Systems
| [EMAIL PROTECTED]
09/07/2005 09:53 AM
|
|
You must add the following lines in web.xml:
<!-- Listener, that does all the startup work (configuration, init). -->
<listener>
<listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
</listener>
Regards.
Roberto
[EMAIL PROTECTED]
s.com Per: "MyFaces Discussion" <[email protected]>
Cc:
07/09/2005 16.45 Oggetto: Calendar component
Per favore,
rispondere a
"MyFaces
Discussion"
Hi,
I have created a faces web application in IBM Rational with the server
is Websphere Portal 5.0. I have followed the instructions to remove the
jsf-impl.jar and jsf-api.jar and put the myfaces.jar and
myfaces-extensions.jar in WEB-INF/lib. I have to use the calendar tag in my
page. So I also imported the taglib into my web page
<[EMAIL PROTECTED] uri="http://myfaces.apache.org/extensions" prefix="x"%>
The work flow works till I have jsf-impl.jar and jsf-api.jar. But as soon
as I replace them with myfaces.jar and myfaces-extensions.jar, I don't get
my front page. I still didn't use the calendar tag in my web page yet, I
get this error . Can somebody please help me with the right jar files I
need to use to get to my front page atleast. What is this
myfaces-jsf-api.jar and do I need this in my lib directory.
And I get this exception when I start the server
Did not realize init() exception thrown by servlet Faces Servlet:
javax.servlet.ServletException: No Factories configured for this
Application - typically this is because 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>
I am really struggling on this issue for the past two weeks. I am not
able to figure out the problem I get. I badly need help on this. Any help
is aprreciated.
FYI, my faces application is auto generated my IBM Rational with pagecode
package and its own managed-beans .
Thanks a lot
Latha
DST Systems
This e-mail and any attachments are intended only for the individual or
company to which it is addressed and may contain information which is
privileged, confidential and prohibited from disclosure or unauthorized use
under applicable law. If you are not the intended recipient of this e-mail,
you are hereby notified that any use, dissemination, or copying of this
e-mail or the information contained in this e-mail is strictly prohibited
by the sender. If you have received this transmission in error, please
return the material received to the sender and delete all copies from your
system.

