Hi Rich,
Rich Koch wrote:
> I apologize if this is a resend--I mistakenly sent the 1st mail from
> another email not associated with this mail list...
>
> I am trying to migrate my Tomcat 5.5, JSF 1.1, web application to
> GlassFish v2 (build 19) and JSF 1.2.
>
> I get my war file to deploy, but I get a 500 error indicating the
> following when I access my web site:
>
> javax.servlet.ServletException
> : PWC1391: Servlet.init() for servlet Faces Servlet threw exception
>
>
> java.lang.IllegalStateException: Application was not properly initialized at startup, could not find Factory:
> javax.faces.context.FacesContextFactory
>
> I removed all of the old jsf 1.1 jars from my war file before doing the
> deploy (thinking that was the problem), but that did not help.
>
> I looked at the glassfish log files and it gives me a stack trace
> showing the expected error [given the error message] happening when the
> faces servlet initialize method is called.
>
> I have searched Sun and other forums, read much of the glassfish
> documentation & JSF tutorials. The docs seem out of date with
> deployment jar file recommendations—for instance I can no longer find a
> jsf-api.jar in the j2ee 5 or glassfish distribution even though this jar
> is mentioned in the docs. I also jar -tvf'd some of the jar files in
> the glassfish distribution looking for FacesContextFactory and could not
> find it—I found one forum discussion implying that jsf-api.jar is now in
> appserv-rt.jar for instance, but it was not there.
javax.faces.context.FacesContextFactory is included in
glassfish/lib/javaee.jar.
Does this help?
Thanks,
Amy
>
> Any help or pointers would be appreciated—I have been working on this
> for 2 days now.
>
> Thanks.
>
> Rich K.
>