Announcement Announcement Module
Collapse
No announcement yet.
How to setup Unified EL for swf-booking-faces Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • #16
    sf:commandButton does not work on WebSphere

    Hi Guys,

    I followed the advices on this thread and get the demo to render the page. However, the sf:command failed to work when I click on the button. It throws the following error:

    [31/03/09 10:18:38:871 EST] 0000001e ServletWrappe E SRVE0068E: Uncaught exception thrown in one of the service methods of the servlet: Spring MVC Dispatcher Servlet. Exception thrown : org.springframework.web.util.NestedServletExceptio n: Handler processing failed; nested exception is java.lang.NoSuchMethodError: javax/faces/component/UIViewRoot.invokeOnComponent(Ljavax/faces/context/FacesContext;Ljava/lang/String;Ljavax/faces/component/ContextCallbackZ
    at org.springframework.web.servlet.DispatcherServlet. doDispatch(DispatcherServlet.java:920)
    at org.springframework.web.servlet.DispatcherServlet. doService(DispatcherServlet.java:809)
    at org.springframework.web.servlet.FrameworkServlet.p rocessRequest(FrameworkServlet.java:571)
    at org.springframework.web.servlet.FrameworkServlet.d oPost(FrameworkServlet.java:511)
    at javax.servlet.http.HttpServlet.service(HttpServlet .java:763)
    at javax.servlet.http.HttpServlet.service(HttpServlet .java:856)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.ser vice(ServletWrapper.java:989)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.ser vice(ServletWrapper.java:930)
    at com.ibm.ws.webcontainer.filter.WebAppFilterChain.d oFilter(WebAppFilterChain.java:145)
    at org.springframework.security.util.FilterChainProxy $VirtualFilterChain.doFilter(FilterChainProxy.java :359)
    at org.springframework.security.intercept.web.FilterS ecurityInterceptor.invoke(FilterSecurityIntercepto r.java:109)
    at org.springframework.security.intercept.web.FilterS ecurityInterceptor.doFilter(FilterSecurityIntercep tor.java:83)
    at org.springframework.security.util.FilterChainProxy $VirtualFilterChain.doFilter(FilterChainProxy.java :371)
    at org.springframework.security.ui.SessionFixationPro tectionFilter.doFilterHttp(SessionFixationProtecti onFilter.java:67)
    at org.springframework.security.ui.SpringSecurityFilt er.doFilter(SpringSecurityFilter.java:53)
    at org.springframework.security.util.FilterChainProxy $VirtualFilterChain.doFilter(FilterChainProxy.java :371)
    at org.springframework.security.ui.ExceptionTranslati onFilter.doFilterHttp(ExceptionTranslationFilter.j ava:101)
    at org.springframework.security.ui.SpringSecurityFilt er.doFilter(SpringSecurityFilter.java:53)
    at org.springframework.security.util.FilterChainProxy $VirtualFilterChain.doFilter(FilterChainProxy.java :371)
    at org.springframework.security.providers.anonymous.A nonymousProcessingFilter.doFilterHttp(AnonymousPro cessingFilter.java:105)
    at org.springframework.security.ui.SpringSecurityFilt er.doFilter(SpringSecurityFilter.java:53)
    at org.springframework.security.util.FilterChainProxy $VirtualFilterChain.doFilter(FilterChainProxy.java :371)
    at org.springframework.security.ui.rememberme.Remembe rMeProcessingFilter.doFilterHttp(RememberMeProcess ingFilter.java:116)
    at org.springframework.security.ui.SpringSecurityFilt er.doFilter(SpringSecurityFilter.java:53)
    at org.springframework.security.util.FilterChainProxy $VirtualFilterChain.doFilter(FilterChainProxy.java :371)
    at org.springframework.security.wrapper.SecurityConte xtHolderAwareRequestFilter.doFilterHttp(SecurityCo ntextHolderAwareRequestFilter.java:91)
    at org.springframework.security.ui.SpringSecurityFilt er.doFilter(SpringSecurityFilter.java:53)
    at org.springframework.security.util.FilterChainProxy $VirtualFilterChain.doFilter(FilterChainProxy.java :371)
    at org.springframework.security.ui.basicauth.BasicPro cessingFilter.doFilterHttp(BasicProcessingFilter.j ava:173)
    at org.springframework.security.ui.SpringSecurityFilt er.doFilter(SpringSecurityFilter.java:53)
    at org.springframework.security.util.FilterChainProxy $VirtualFilterChain.doFilter(FilterChainProxy.java :371)
    at org.springframework.security.ui.AbstractProcessing Filter.doFilterHttp(AbstractProcessingFilter.java: 271)
    at org.springframework.security.ui.SpringSecurityFilt er.doFilter(SpringSecurityFilter.java:53)
    at org.springframework.security.util.FilterChainProxy $VirtualFilterChain.doFilter(FilterChainProxy.java :371)
    at org.springframework.security.ui.logout.LogoutFilte r.doFilterHttp(LogoutFilter.java:89)
    at org.springframework.security.ui.SpringSecurityFilt er.doFilter(SpringSecurityFilter.java:53)
    at org.springframework.security.util.FilterChainProxy $VirtualFilterChain.doFilter(FilterChainProxy.java :371)
    at org.springframework.security.context.HttpSessionCo ntextIntegrationFilter.doFilterHttp(HttpSessionCon textIntegrationFilter.java:235)
    at org.springframework.security.ui.SpringSecurityFilt er.doFilter(SpringSecurityFilter.java:53)
    at org.springframework.security.util.FilterChainProxy $VirtualFilterChain.doFilter(FilterChainProxy.java :371)
    at org.springframework.security.util.FilterChainProxy .doFilter(FilterChainProxy.java:174)
    at org.springframework.web.filter.DelegatingFilterPro xy.invokeDelegate(DelegatingFilterProxy.java:236)
    at org.springframework.web.filter.DelegatingFilterPro xy.doFilter(DelegatingFilterProxy.java:167)
    at com.ibm.ws.webcontainer.filter.FilterInstanceWrapp er.doFilter(FilterInstanceWrapper.java:190)
    at com.ibm.ws.webcontainer.filter.WebAppFilterChain.d oFilter(WebAppFilterChain.java:130)
    at org.springframework.web.filter.CharacterEncodingFi lter.doFilterInternal(CharacterEncodingFilter.java :96)
    at org.springframework.web.filter.OncePerRequestFilte r.doFilter(OncePerRequestFilter.java:76)
    at com.ibm.ws.webcontainer.filter.FilterInstanceWrapp er.doFilter(FilterInstanceWrapper.java:190)
    at com.ibm.ws.webcontainer.filter.WebAppFilterChain.d oFilter(WebAppFilterChain.java:130)
    at com.ibm.ws.webcontainer.filter.WebAppFilterChain._ doFilter(WebAppFilterChain.java:87)
    at com.ibm.ws.webcontainer.filter.WebAppFilterManager .doFilter(WebAppFilterManager.java:761)
    at com.ibm.ws.webcontainer.filter.WebAppFilterManager .doFilter(WebAppFilterManager.java:673)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.han dleRequest(ServletWrapper.java:498)
    at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.h andleRequest(ServletWrapper.java:464)
    at com.ibm.ws.webcontainer.servlet.CacheServletWrappe r.handleRequest(CacheServletWrapper.java:90)
    at com.ibm.ws.webcontainer.WebContainer.handleRequest (WebContainer.java:744)
    at com.ibm.ws.wswebcontainer.WebContainer.handleReque st(WebContainer.java:1433)
    at com.ibm.ws.webcontainer.channel.WCChannelLink.read y(WCChannelLink.java:112)
    at com.ibm.ws.http.channel.inbound.impl.HttpInboundLi nk.handleDiscrimination(HttpInboundLink.java:454)
    at com.ibm.ws.http.channel.inbound.impl.HttpInboundLi nk.handleNewInformation(HttpInboundLink.java:383)
    at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCa llback.complete(HttpICLReadCallback.java:102)
    at com.ibm.ws.tcp.channel.impl.AioReadCompletionListe ner.futureCompleted(AioReadCompletionListener.java :165)
    at com.ibm.io.async.AbstractAsyncFuture.invokeCallbac k(AbstractAsyncFuture.java:217)
    at com.ibm.io.async.AsyncChannelFuture.fireCompletion Actions(AsyncChannelFuture.java:161)
    at com.ibm.io.async.AsyncFuture.completed(AsyncFuture .java:136)
    at com.ibm.io.async.ResultHandler.complete(ResultHand ler.java:195)
    at com.ibm.io.async.ResultHandler.runEventProcessingL oop(ResultHandler.java:743)
    at com.ibm.io.async.ResultHandler$2.run(ResultHandler .java:873)
    at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.j ava:1469)
    Caused by: java.lang.NoSuchMethodError: javax/faces/component/UIViewRoot.invokeOnComponent(Ljavax/faces/context/FacesContext;Ljava/lang/String;Ljavax/faces/component/ContextCallbackZ
    at org.springframework.faces.ui.DelegatingViewRoot.in vokeOnComponent(DelegatingViewRoot.java:292)
    at org.springframework.faces.ui.AjaxViewRoot.processD ecodes(AjaxViewRoot.java:122)
    at org.springframework.faces.webflow.FlowLifecycle.in vokePhase(FlowLifecycle.java:113)
    at org.springframework.faces.webflow.FlowLifecycle.ex ecute(FlowLifecycle.java:65)
    at org.springframework.faces.webflow.JsfView.processU serEvent(JsfView.java:112)
    at org.springframework.webflow.engine.ViewState.resum e(ViewState.java:187)
    at org.springframework.webflow.engine.Flow.resume(Flo w.java:545)
    at org.springframework.webflow.engine.impl.FlowExecut ionImpl.resume(FlowExecutionImpl.java:262)
    at org.springframework.webflow.executor.FlowExecutorI mpl.resumeExecution(FlowExecutorImpl.java:163)
    at org.springframework.webflow.mvc.servlet.FlowHandle rAdapter.handle(FlowHandlerAdapter.java:173)
    at org.springframework.web.servlet.DispatcherServlet. doDispatch(DispatcherServlet.java:875)
    ... 68 more

    I check my classpath and I can find the UIViewRoot class in my classpath and the invokeOnComponent method included in the UIViewRoot class.

    I used WebSphere 6.1 build 9. Web flow 2.0.5.

    Any comments and suggestions are welcome.

    Leo682.

    Comment


    • #17
      Running swf on websphere 6.1 !

      ello, swf does run onwas 6.1 i am guessing here when u set the application classpath following deployment (thru WAS61 console) so the bottom (second) option on each of the radio boxes is selected (not the defaults), confirm this as first step (see comments on this above)...

      Comment


      • #18
        Still have issues.

        Hi gbayfield,

        Thank you for the reply.

        I following your suggestion and set the class loading to PARENT_LAST and use single class loader for application. This time I have a different error, here is the stack trace:

        [1/04/09 09:19:53:151 EST] 0000004e ServletWrappe E SRVE0068E: Uncaught exception thrown in one of the service methods of the servlet: Spring MVC Dispatcher Servlet. Exception thrown : org.springframework.web.util.NestedServletExceptio n: Handler processing failed; nested exception is java.lang.NoClassDefFoundError: javax.faces.component.ContextCallback
        at org.springframework.web.servlet.DispatcherServlet. doDispatch(DispatcherServlet.java:920)
        at org.springframework.web.servlet.DispatcherServlet. doService(DispatcherServlet.java:809)
        at org.springframework.web.servlet.FrameworkServlet.p rocessRequest(FrameworkServlet.java:571)
        at org.springframework.web.servlet.FrameworkServlet.d oPost(FrameworkServlet.java:511)
        at javax.servlet.http.HttpServlet.service(HttpServlet .java:763)
        at javax.servlet.http.HttpServlet.service(HttpServlet .java:856)
        at com.ibm.ws.webcontainer.servlet.ServletWrapper.ser vice(ServletWrapper.java:989)
        at com.ibm.ws.webcontainer.servlet.ServletWrapper.ser vice(ServletWrapper.java:930)
        at com.ibm.ws.webcontainer.filter.WebAppFilterChain.d oFilter(WebAppFilterChain.java:145)
        at org.springframework.security.util.FilterChainProxy $VirtualFilterChain.doFilter(FilterChainProxy.java :359)
        at org.springframework.security.intercept.web.FilterS ecurityInterceptor.invoke(FilterSecurityIntercepto r.java:109)
        at org.springframework.security.intercept.web.FilterS ecurityInterceptor.doFilter(FilterSecurityIntercep tor.java:83)
        at org.springframework.security.util.FilterChainProxy $VirtualFilterChain.doFilter(FilterChainProxy.java :371)
        at org.springframework.security.ui.SessionFixationPro tectionFilter.doFilterHttp(SessionFixationProtecti onFilter.java:67)
        at org.springframework.security.ui.SpringSecurityFilt er.doFilter(SpringSecurityFilter.java:53)
        at org.springframework.security.util.FilterChainProxy $VirtualFilterChain.doFilter(FilterChainProxy.java :371)
        at org.springframework.security.ui.ExceptionTranslati onFilter.doFilterHttp(ExceptionTranslationFilter.j ava:101)
        at org.springframework.security.ui.SpringSecurityFilt er.doFilter(SpringSecurityFilter.java:53)
        at org.springframework.security.util.FilterChainProxy $VirtualFilterChain.doFilter(FilterChainProxy.java :371)
        at org.springframework.security.providers.anonymous.A nonymousProcessingFilter.doFilterHttp(AnonymousPro cessingFilter.java:105)
        at org.springframework.security.ui.SpringSecurityFilt er.doFilter(SpringSecurityFilter.java:53)
        at org.springframework.security.util.FilterChainProxy $VirtualFilterChain.doFilter(FilterChainProxy.java :371)
        at org.springframework.security.ui.rememberme.Remembe rMeProcessingFilter.doFilterHttp(RememberMeProcess ingFilter.java:116)
        at org.springframework.security.ui.SpringSecurityFilt er.doFilter(SpringSecurityFilter.java:53)
        at org.springframework.security.util.FilterChainProxy $VirtualFilterChain.doFilter(FilterChainProxy.java :371)
        at org.springframework.security.wrapper.SecurityConte xtHolderAwareRequestFilter.doFilterHttp(SecurityCo ntextHolderAwareRequestFilter.java:91)
        at org.springframework.security.ui.SpringSecurityFilt er.doFilter(SpringSecurityFilter.java:53)
        at org.springframework.security.util.FilterChainProxy $VirtualFilterChain.doFilter(FilterChainProxy.java :371)
        at org.springframework.security.ui.basicauth.BasicPro cessingFilter.doFilterHttp(BasicProcessingFilter.j ava:173)
        at org.springframework.security.ui.SpringSecurityFilt er.doFilter(SpringSecurityFilter.java:53)
        at org.springframework.security.util.FilterChainProxy $VirtualFilterChain.doFilter(FilterChainProxy.java :371)
        at org.springframework.security.ui.AbstractProcessing Filter.doFilterHttp(AbstractProcessingFilter.java: 271)
        at org.springframework.security.ui.SpringSecurityFilt er.doFilter(SpringSecurityFilter.java:53)
        at org.springframework.security.util.FilterChainProxy $VirtualFilterChain.doFilter(FilterChainProxy.java :371)
        at org.springframework.security.ui.logout.LogoutFilte r.doFilterHttp(LogoutFilter.java:89)
        at org.springframework.security.ui.SpringSecurityFilt er.doFilter(SpringSecurityFilter.java:53)
        at org.springframework.security.util.FilterChainProxy $VirtualFilterChain.doFilter(FilterChainProxy.java :371)
        at org.springframework.security.context.HttpSessionCo ntextIntegrationFilter.doFilterHttp(HttpSessionCon textIntegrationFilter.java:235)
        at org.springframework.security.ui.SpringSecurityFilt er.doFilter(SpringSecurityFilter.java:53)
        at org.springframework.security.util.FilterChainProxy $VirtualFilterChain.doFilter(FilterChainProxy.java :371)
        at org.springframework.security.util.FilterChainProxy .doFilter(FilterChainProxy.java:174)
        at org.springframework.web.filter.DelegatingFilterPro xy.invokeDelegate(DelegatingFilterProxy.java:236)
        at org.springframework.web.filter.DelegatingFilterPro xy.doFilter(DelegatingFilterProxy.java:167)
        at com.ibm.ws.webcontainer.filter.FilterInstanceWrapp er.doFilter(FilterInstanceWrapper.java:190)
        at com.ibm.ws.webcontainer.filter.WebAppFilterChain.d oFilter(WebAppFilterChain.java:130)
        at org.springframework.web.filter.CharacterEncodingFi lter.doFilterInternal(CharacterEncodingFilter.java :96)
        at org.springframework.web.filter.OncePerRequestFilte r.doFilter(OncePerRequestFilter.java:76)
        at com.ibm.ws.webcontainer.filter.FilterInstanceWrapp er.doFilter(FilterInstanceWrapper.java:190)
        at com.ibm.ws.webcontainer.filter.WebAppFilterChain.d oFilter(WebAppFilterChain.java:130)
        at com.ibm.ws.webcontainer.filter.WebAppFilterChain._ doFilter(WebAppFilterChain.java:87)
        at com.ibm.ws.webcontainer.filter.WebAppFilterManager .doFilter(WebAppFilterManager.java:761)
        at com.ibm.ws.webcontainer.filter.WebAppFilterManager .doFilter(WebAppFilterManager.java:673)
        at com.ibm.ws.webcontainer.servlet.ServletWrapper.han dleRequest(ServletWrapper.java:498)
        at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.h andleRequest(ServletWrapper.java:464)
        at com.ibm.ws.webcontainer.servlet.CacheServletWrappe r.handleRequest(CacheServletWrapper.java:90)
        at com.ibm.ws.webcontainer.WebContainer.handleRequest (WebContainer.java:744)
        at com.ibm.ws.wswebcontainer.WebContainer.handleReque st(WebContainer.java:1433)
        at com.ibm.ws.webcontainer.channel.WCChannelLink.read y(WCChannelLink.java:112)
        at com.ibm.ws.http.channel.inbound.impl.HttpInboundLi nk.handleDiscrimination(HttpInboundLink.java:454)
        at com.ibm.ws.http.channel.inbound.impl.HttpInboundLi nk.handleNewInformation(HttpInboundLink.java:383)
        at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCa llback.complete(HttpICLReadCallback.java:102)
        at com.ibm.ws.tcp.channel.impl.AioReadCompletionListe ner.futureCompleted(AioReadCompletionListener.java :165)
        at com.ibm.io.async.AbstractAsyncFuture.invokeCallbac k(AbstractAsyncFuture.java:217)
        at com.ibm.io.async.AsyncChannelFuture.fireCompletion Actions(AsyncChannelFuture.java:161)
        at com.ibm.io.async.AsyncFuture.completed(AsyncFuture .java:136)
        at com.ibm.io.async.ResultHandler.complete(ResultHand ler.java:195)
        at com.ibm.io.async.ResultHandler.runEventProcessingL oop(ResultHandler.java:743)
        at com.ibm.io.async.ResultHandler$2.run(ResultHandler .java:873)
        at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.j ava:1469)
        Caused by: java.lang.NoClassDefFoundError: javax.faces.component.ContextCallback
        at java.lang.J9VMInternals.verifyImpl(Native Method)
        at java.lang.J9VMInternals.verify(J9VMInternals.java: 66)
        at java.lang.J9VMInternals.initialize(J9VMInternals.j ava:127)
        at org.springframework.faces.webflow.JsfViewFactory.c reateJsfView(JsfViewFactory.java:143)
        at org.springframework.faces.webflow.JsfViewFactory.g etView(JsfViewFactory.java:101)
        at org.springframework.webflow.engine.ViewState.resum e(ViewState.java:186)
        at org.springframework.webflow.engine.Flow.resume(Flo w.java:545)
        at org.springframework.webflow.engine.impl.FlowExecut ionImpl.resume(FlowExecutionImpl.java:262)
        at org.springframework.webflow.executor.FlowExecutorI mpl.resumeExecution(FlowExecutorImpl.java:163)
        at org.springframework.webflow.mvc.servlet.FlowHandle rAdapter.handle(FlowHandlerAdapter.java:173)
        at org.springframework.web.servlet.DispatcherServlet. doDispatch(DispatcherServlet.java:875)
        ... 68 more



        Once again, I check the javax.faces.component.ContextCallback interface does exist at com.springsource.javax.faces-1.2.0.08.jar file.

        Regards,
        leo682.

        Comment


        • #19
          Check classpath @ runtime ...

          hi, ok so i think u have successfully deployed swf to was61 and when u attempt to start this app u see this his trace ?

          Your right on com.springsource.javax.faces-1.2.0.08.jar
          In the startup do u see previously in was log/console something like ... ?

          [01/04/09 08:24:24:172 BST] 00000013 config I Initializing Mojarra (1.2_08-b06-FCS) for context '{YourAppName.war}'

          i suspect not, then check if jar is in your built war file that u deployed? If so then is your web.xml setup for spring faces/jsf for startup ? something like ...

          Code:
          <?xml version="1.0" encoding="ISO-8859-1"?>
          <web-app xmlns="http://java.sun.com/xml/ns/j2ee"
          	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          	xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
          	version="2.4">
          
          	<!-- The master configuration file for this Spring web application -->
          	<context-param>
          		<param-name>contextConfigLocation</param-name>
          		<param-value>
          			/WEB-INF/config/web-application-config.xml
          		</param-value>
          	</context-param>
          	
          	<!-- Use JSF view templates saved as *.xhtml, for use with Facelets -->
          	<context-param>
          		<param-name>javax.faces.DEFAULT_SUFFIX</param-name>
          		<param-value>.xhtml</param-value>
          	</context-param>
          	
          	<!-- Enables special Facelets debug output during development -->
            	<context-param>
                  <param-name>facelets.DEVELOPMENT</param-name>
             		<param-value>true</param-value>
            	</context-param>
            	
            	<!-- Causes Facelets to refresh templates during development -->
            	<context-param>
            		<param-name>facelets.REFRESH_PERIOD</param-name>
            		<param-value>1</param-value>
            	</context-param>
              
              <!-- Enforce UTF-8 Character Encoding -->
              <filter>
                  <filter-name>charEncodingFilter</filter-name>
                  <filter-class>org.springframework.web.filter.CharacterEncodingFilter</filter-class>
                  <init-param>
                      <param-name>encoding</param-name>
                      <param-value>UTF-8</param-value>
                  </init-param>
                  <init-param>
                      <param-name>forceEncoding</param-name>
                      <param-value>true</param-value>
                  </init-param>
              </filter>
              
              <filter-mapping>
                  <filter-name>charEncodingFilter</filter-name>
                  <url-pattern>/*</url-pattern>
              </filter-mapping>
          	
          	<!-- Loads the Spring web application context -->
          	<listener>
          		<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
          	</listener>
            	
            	<!-- Serves static resource content from .jar files such as spring-faces.jar -->
          	<servlet>
          		<servlet-name>Resources Servlet</servlet-name>
          		<servlet-class>org.springframework.js.resource.ResourceServlet</servlet-class>
          		<load-on-startup>0</load-on-startup>
          	</servlet>
          		
          	<!-- Map all /resources requests to the Resource Servlet for handling -->
          	<servlet-mapping>
          		<servlet-name>Resources Servlet</servlet-name>
          		<url-pattern>/resources/*</url-pattern>
          	</servlet-mapping>
          	
          	<!-- The front controller of this Spring Web application, responsible for handling all application requests -->
          	<servlet>
          		<servlet-name>Spring MVC Dispatcher Servlet</servlet-name>
          		<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
          		<init-param>
          			<param-name>contextConfigLocation</param-name>
          			<param-value></param-value>
          		</init-param>
          		<load-on-startup>2</load-on-startup>
          	</servlet>
          		
          	<!-- Map all /spring requests to the Dispatcher Servlet for handling -->
          	<servlet-mapping>
          		<servlet-name>Spring MVC Dispatcher Servlet</servlet-name>
          		<url-pattern>/spring/*</url-pattern>
          	</servlet-mapping>
          
          	<!-- Just here so the JSF implementation can initialize, *not* used at runtime -->
          	<servlet>
          		<servlet-name>Faces Servlet</servlet-name>
          		<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
          		<load-on-startup>1</load-on-startup>
          	</servlet>
          	
          	<!-- Just here so the JSF implementation can initialize -->
          	<servlet-mapping>
          		<servlet-name>Faces Servlet</servlet-name>
          		<url-pattern>*.faces</url-pattern>
          	</servlet-mapping>
          	
          	<welcome-file-list>
          		<welcome-file>index.html</welcome-file>
          	</welcome-file-list>
          
          </web-app>
          Just guessing here as to why the base runtime env is not setup properly ?

          Comment


          • #20
            Still have same java.lang.NoClassDefFoundError: javax.faces.component.ContextCallback

            Hi gbayfield,

            Thank you for your reply.

            I replace my web.xml and the one you posted on the reply. I was not unable to login to the application. After I added the follow lines:

            <!-- Enables Spring Security -->
            <filter>
            <filter-name>springSecurityFilterChain</filter-name>
            <filter-class>org.springframework.web.filter.DelegatingFil terProxy</filter-class>
            </filter>

            <filter-mapping>
            <filter-name>springSecurityFilterChain</filter-name>
            <url-pattern>/*</url-pattern>
            </filter-mapping>

            into the web.xml, I am able to login to the application. However, I am still have the same java.lang.NoClassDefFoundError: javax.faces.component.ContextCallback problem when I enter "Hilton" on the Search Hotel screen and click on the "Find Hotels" button.

            Furthermore, I compared my web.xml with the one you posted. There are two different, one is the spring security I mention above, another one is:

            <!-- GRB Configure Facelets to use JBoss EL -->
            <context-param>
            <param-name>com.sun.faces.expressionFactory</param-name>
            <param-value>org.jboss.el.ExpressionFactoryImpl</param-value>
            </context-param>
            <!-- GRB Prevent IBM from parsing app faces-config.xml -->
            <context-param>
            <param-name>com.ibm.ws.jsf.LOAD_FACES_CONFIG_AT_STARTUP</param-name>
            <param-value>false</param-value>
            </context-param>

            It is taking from this thread. The whole project is imported directly from spring-webflow-2.0.5.RELEASE.zip without any changes.

            Regards,
            leo682

            Comment


            • #21
              Runtime classpath ...

              hmmm so your SWF demo now startups but u have runtime classes not found - as u point out, my app has roots in SWF but has evolved down its own path so not really helpful for you other than to see how i initialise the runtime environment at least - problem has got to be with either the deployment classpath options and /or the demo web.xml settings not being set correctly so faces environment not being initialised ? Post your full trace so look for clues ...

              Comment


              • #22
                Full stack trace

                Hi gbayfield,

                Here is the 1st part of stack trace:

                [7/04/09 10:43:48:878 EST] 0000003a ServletWrappe E SRVE0068E: Uncaught exception thrown in one of the service methods of the servlet: Spring MVC Dispatcher Servlet. Exception thrown : org.springframework.web.util.NestedServletExceptio n: Handler processing failed; nested exception is java.lang.NoClassDefFoundError: javax.faces.component.ContextCallback
                at org.springframework.web.servlet.DispatcherServlet. doDispatch(DispatcherServlet.java:920)
                at org.springframework.web.servlet.DispatcherServlet. doService(DispatcherServlet.java:809)
                at org.springframework.web.servlet.FrameworkServlet.p rocessRequest(FrameworkServlet.java:571)
                at org.springframework.web.servlet.FrameworkServlet.d oPost(FrameworkServlet.java:511)
                at javax.servlet.http.HttpServlet.service(HttpServlet .java:763)
                at javax.servlet.http.HttpServlet.service(HttpServlet .java:856)
                at com.ibm.ws.webcontainer.servlet.ServletWrapper.ser vice(ServletWrapper.java:989)
                at com.ibm.ws.webcontainer.servlet.ServletWrapper.ser vice(ServletWrapper.java:930)
                at com.ibm.ws.webcontainer.filter.WebAppFilterChain.d oFilter(WebAppFilterChain.java:145)
                at org.springframework.security.util.FilterChainProxy $VirtualFilterChain.doFilter(FilterChainProxy.java :359)
                at org.springframework.security.intercept.web.FilterS ecurityInterceptor.invoke(FilterSecurityIntercepto r.java:109)
                at org.springframework.security.intercept.web.FilterS ecurityInterceptor.doFilter(FilterSecurityIntercep tor.java:83)
                at org.springframework.security.util.FilterChainProxy $VirtualFilterChain.doFilter(FilterChainProxy.java :371)
                at org.springframework.security.ui.SessionFixationPro tectionFilter.doFilterHttp(SessionFixationProtecti onFilter.java:67)
                at org.springframework.security.ui.SpringSecurityFilt er.doFilter(SpringSecurityFilter.java:53)
                at org.springframework.security.util.FilterChainProxy $VirtualFilterChain.doFilter(FilterChainProxy.java :371)
                at org.springframework.security.ui.ExceptionTranslati onFilter.doFilterHttp(ExceptionTranslationFilter.j ava:101)
                at org.springframework.security.ui.SpringSecurityFilt er.doFilter(SpringSecurityFilter.java:53)
                at org.springframework.security.util.FilterChainProxy $VirtualFilterChain.doFilter(FilterChainProxy.java :371)
                at org.springframework.security.providers.anonymous.A nonymousProcessingFilter.doFilterHttp(AnonymousPro cessingFilter.java:105)
                at org.springframework.security.ui.SpringSecurityFilt er.doFilter(SpringSecurityFilter.java:53)
                at org.springframework.security.util.FilterChainProxy $VirtualFilterChain.doFilter(FilterChainProxy.java :371)
                at org.springframework.security.ui.rememberme.Remembe rMeProcessingFilter.doFilterHttp(RememberMeProcess ingFilter.java:116)
                at org.springframework.security.ui.SpringSecurityFilt er.doFilter(SpringSecurityFilter.java:53)
                at org.springframework.security.util.FilterChainProxy $VirtualFilterChain.doFilter(FilterChainProxy.java :371)
                at org.springframework.security.wrapper.SecurityConte xtHolderAwareRequestFilter.doFilterHttp(SecurityCo ntextHolderAwareRequestFilter.java:91)
                at org.springframework.security.ui.SpringSecurityFilt er.doFilter(SpringSecurityFilter.java:53)
                at org.springframework.security.util.FilterChainProxy $VirtualFilterChain.doFilter(FilterChainProxy.java :371)
                at org.springframework.security.ui.basicauth.BasicPro cessingFilter.doFilterHttp(BasicProcessingFilter.j ava:173)
                at org.springframework.security.ui.SpringSecurityFilt er.doFilter(SpringSecurityFilter.java:53)
                at org.springframework.security.util.FilterChainProxy $VirtualFilterChain.doFilter(FilterChainProxy.java :371)
                at org.springframework.security.ui.AbstractProcessing Filter.doFilterHttp(AbstractProcessingFilter.java: 271)
                at org.springframework.security.ui.SpringSecurityFilt er.doFilter(SpringSecurityFilter.java:53)
                at org.springframework.security.util.FilterChainProxy $VirtualFilterChain.doFilter(FilterChainProxy.java :371)
                at org.springframework.security.ui.logout.LogoutFilte r.doFilterHttp(LogoutFilter.java:89)
                at org.springframework.security.ui.SpringSecurityFilt er.doFilter(SpringSecurityFilter.java:53)
                at org.springframework.security.util.FilterChainProxy $VirtualFilterChain.doFilter(FilterChainProxy.java :371)
                at org.springframework.security.context.HttpSessionCo ntextIntegrationFilter.doFilterHttp(HttpSessionCon textIntegrationFilter.java:235)
                at org.springframework.security.ui.SpringSecurityFilt er.doFilter(SpringSecurityFilter.java:53)
                at org.springframework.security.util.FilterChainProxy $VirtualFilterChain.doFilter(FilterChainProxy.java :371)
                at org.springframework.security.util.FilterChainProxy .doFilter(FilterChainProxy.java:174)
                at org.springframework.web.filter.DelegatingFilterPro xy.invokeDelegate(DelegatingFilterProxy.java:236)
                at org.springframework.web.filter.DelegatingFilterPro xy.doFilter(DelegatingFilterProxy.java:167)
                at com.ibm.ws.webcontainer.filter.FilterInstanceWrapp er.doFilter(FilterInstanceWrapper.java:190)
                at com.ibm.ws.webcontainer.filter.WebAppFilterChain.d oFilter(WebAppFilterChain.java:130)
                at org.springframework.web.filter.CharacterEncodingFi lter.doFilterInternal(CharacterEncodingFilter.java :96)
                at org.springframework.web.filter.OncePerRequestFilte r.doFilter(OncePerRequestFilter.java:76)
                at com.ibm.ws.webcontainer.filter.FilterInstanceWrapp er.doFilter(FilterInstanceWrapper.java:190)
                at com.ibm.ws.webcontainer.filter.WebAppFilterChain.d oFilter(WebAppFilterChain.java:130)
                at com.ibm.ws.webcontainer.filter.WebAppFilterChain._ doFilter(WebAppFilterChain.java:87)
                at com.ibm.ws.webcontainer.filter.WebAppFilterManager .doFilter(WebAppFilterManager.java:761)
                at com.ibm.ws.webcontainer.filter.WebAppFilterManager .doFilter(WebAppFilterManager.java:673)
                at com.ibm.ws.webcontainer.servlet.ServletWrapper.han dleRequest(ServletWrapper.java:498)
                at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.h andleRequest(ServletWrapper.java:464)
                at com.ibm.ws.webcontainer.servlet.CacheServletWrappe r.handleRequest(CacheServletWrapper.java:90)
                at com.ibm.ws.webcontainer.WebContainer.handleRequest (WebContainer.java:744)
                at com.ibm.ws.wswebcontainer.WebContainer.handleReque st(WebContainer.java:1433)
                at com.ibm.ws.webcontainer.channel.WCChannelLink.read y(WCChannelLink.java:112)
                at com.ibm.ws.http.channel.inbound.impl.HttpInboundLi nk.handleDiscrimination(HttpInboundLink.java:454)
                at com.ibm.ws.http.channel.inbound.impl.HttpInboundLi nk.handleNewInformation(HttpInboundLink.java:383)
                at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCa llback.complete(HttpICLReadCallback.java:102)
                at com.ibm.ws.tcp.channel.impl.AioReadCompletionListe ner.futureCompleted(AioReadCompletionListener.java :165)
                at com.ibm.io.async.AbstractAsyncFuture.invokeCallbac k(AbstractAsyncFuture.java:217)
                at com.ibm.io.async.AsyncChannelFuture.fireCompletion Actions(AsyncChannelFuture.java:161)
                at com.ibm.io.async.AsyncFuture.completed(AsyncFuture .java:136)
                at com.ibm.io.async.ResultHandler.complete(ResultHand ler.java:195)
                at com.ibm.io.async.ResultHandler.runEventProcessingL oop(ResultHandler.java:743)
                at com.ibm.io.async.ResultHandler$2.run(ResultHandler .java:873)
                at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.j ava:1469)
                Caused by: java.lang.NoClassDefFoundError: javax.faces.component.ContextCallback
                at java.lang.J9VMInternals.verifyImpl(Native Method)
                at java.lang.J9VMInternals.verify(J9VMInternals.java: 66)
                at java.lang.J9VMInternals.initialize(J9VMInternals.j ava:127)
                at org.springframework.faces.webflow.JsfViewFactory.c reateJsfView(JsfViewFactory.java:143)
                at org.springframework.faces.webflow.JsfViewFactory.g etView(JsfViewFactory.java:101)
                at org.springframework.webflow.engine.ViewState.resum e(ViewState.java:186)
                at org.springframework.webflow.engine.Flow.resume(Flo w.java:545)
                at org.springframework.webflow.engine.impl.FlowExecut ionImpl.resume(FlowExecutionImpl.java:262)
                at org.springframework.webflow.executor.FlowExecutorI mpl.resumeExecution(FlowExecutorImpl.java:163)
                at org.springframework.webflow.mvc.servlet.FlowHandle rAdapter.handle(FlowHandlerAdapter.java:173)
                at org.springframework.web.servlet.DispatcherServlet. doDispatch(DispatcherServlet.java:875)
                ... 68 more



                Regards,
                Leo682

                Comment


                • #23
                  The 2nd part of stack trace.

                  Hi gbayfield,

                  Here is the 2nd part of stack trace. It is too big for one post.

                  [7/04/09 10:43:48:909 EST] 0000003a ServiceLogger I com.ibm.ws.ffdc.IncidentStreamImpl initialize FFDC0009I: FFDC opened incident stream file C:\Program Files\IBM\SDP70\runtimes\base_v61\profiles\AppSrv0 1\logs\ffdc\server1_c920c92_09.04.07_10.43.48_0.tx t
                  [7/04/09 10:43:48:940 EST] 0000003a ServiceLogger I com.ibm.ws.ffdc.IncidentStreamImpl resetIncidentStream FFDC0010I: FFDC closed incident stream file C:\Program Files\IBM\SDP70\runtimes\base_v61\profiles\AppSrv0 1\logs\ffdc\server1_c920c92_09.04.07_10.43.48_0.tx t
                  [7/04/09 10:43:48:956 EST] 0000003a ServiceLogger I com.ibm.ws.ffdc.IncidentStreamImpl open FFDC0009I: FFDC opened incident stream file C:\Program Files\IBM\SDP70\runtimes\base_v61\profiles\AppSrv0 1\logs\ffdc\server1_c920c92_09.04.07_10.43.48_1.tx t
                  [7/04/09 10:43:48:971 EST] 0000003a ServiceLogger I com.ibm.ws.ffdc.IncidentStreamImpl resetIncidentStream FFDC0010I: FFDC closed incident stream file C:\Program Files\IBM\SDP70\runtimes\base_v61\profiles\AppSrv0 1\logs\ffdc\server1_c920c92_09.04.07_10.43.48_1.tx t
                  [7/04/09 10:43:49:003 EST] 0000003a ServiceLogger I com.ibm.ws.ffdc.IncidentStreamImpl open FFDC0009I: FFDC opened incident stream file C:\Program Files\IBM\SDP70\runtimes\base_v61\profiles\AppSrv0 1\logs\ffdc\server1_c920c92_09.04.07_10.43.49_0.tx t
                  [7/04/09 10:43:49:018 EST] 0000003a ServiceLogger I com.ibm.ws.ffdc.IncidentStreamImpl resetIncidentStream FFDC0010I: FFDC closed incident stream file C:\Program Files\IBM\SDP70\runtimes\base_v61\profiles\AppSrv0 1\logs\ffdc\server1_c920c92_09.04.07_10.43.49_0.tx t
                  [7/04/09 10:43:49:018 EST] 0000003a WebApp E [Servlet Error]-[Spring MVC Dispatcher Servlet]: java.lang.NoClassDefFoundError: javax.faces.component.ContextCallback
                  at java.lang.J9VMInternals.verifyImpl(Native Method)
                  at java.lang.J9VMInternals.verify(J9VMInternals.java: 66)
                  at java.lang.J9VMInternals.initialize(J9VMInternals.j ava:127)
                  at org.springframework.faces.webflow.JsfViewFactory.c reateJsfView(JsfViewFactory.java:143)
                  at org.springframework.faces.webflow.JsfViewFactory.g etView(JsfViewFactory.java:101)
                  at org.springframework.webflow.engine.ViewState.resum e(ViewState.java:186)
                  at org.springframework.webflow.engine.Flow.resume(Flo w.java:545)
                  at org.springframework.webflow.engine.impl.FlowExecut ionImpl.resume(FlowExecutionImpl.java:262)
                  at org.springframework.webflow.executor.FlowExecutorI mpl.resumeExecution(FlowExecutorImpl.java:163)
                  at org.springframework.webflow.mvc.servlet.FlowHandle rAdapter.handle(FlowHandlerAdapter.java:173)
                  at org.springframework.web.servlet.DispatcherServlet. doDispatch(DispatcherServlet.java:875)
                  at org.springframework.web.servlet.DispatcherServlet. doService(DispatcherServlet.java:809)
                  at org.springframework.web.servlet.FrameworkServlet.p rocessRequest(FrameworkServlet.java:571)
                  at org.springframework.web.servlet.FrameworkServlet.d oPost(FrameworkServlet.java:511)
                  at javax.servlet.http.HttpServlet.service(HttpServlet .java:763)
                  at javax.servlet.http.HttpServlet.service(HttpServlet .java:856)
                  at com.ibm.ws.webcontainer.servlet.ServletWrapper.ser vice(ServletWrapper.java:989)
                  at com.ibm.ws.webcontainer.servlet.ServletWrapper.ser vice(ServletWrapper.java:930)
                  at com.ibm.ws.webcontainer.filter.WebAppFilterChain.d oFilter(WebAppFilterChain.java:145)
                  at org.springframework.security.util.FilterChainProxy $VirtualFilterChain.doFilter(FilterChainProxy.java :359)
                  at org.springframework.security.intercept.web.FilterS ecurityInterceptor.invoke(FilterSecurityIntercepto r.java:109)
                  at org.springframework.security.intercept.web.FilterS ecurityInterceptor.doFilter(FilterSecurityIntercep tor.java:83)
                  at org.springframework.security.util.FilterChainProxy $VirtualFilterChain.doFilter(FilterChainProxy.java :371)
                  at org.springframework.security.ui.SessionFixationPro tectionFilter.doFilterHttp(SessionFixationProtecti onFilter.java:67)
                  at org.springframework.security.ui.SpringSecurityFilt er.doFilter(SpringSecurityFilter.java:53)
                  at org.springframework.security.util.FilterChainProxy $VirtualFilterChain.doFilter(FilterChainProxy.java :371)
                  at org.springframework.security.ui.ExceptionTranslati onFilter.doFilterHttp(ExceptionTranslationFilter.j ava:101)
                  at org.springframework.security.ui.SpringSecurityFilt er.doFilter(SpringSecurityFilter.java:53)
                  at org.springframework.security.util.FilterChainProxy $VirtualFilterChain.doFilter(FilterChainProxy.java :371)
                  at org.springframework.security.providers.anonymous.A nonymousProcessingFilter.doFilterHttp(AnonymousPro cessingFilter.java:105)
                  at org.springframework.security.ui.SpringSecurityFilt er.doFilter(SpringSecurityFilter.java:53)
                  at org.springframework.security.util.FilterChainProxy $VirtualFilterChain.doFilter(FilterChainProxy.java :371)
                  at org.springframework.security.ui.rememberme.Remembe rMeProcessingFilter.doFilterHttp(RememberMeProcess ingFilter.java:116)
                  at org.springframework.security.ui.SpringSecurityFilt er.doFilter(SpringSecurityFilter.java:53)
                  at org.springframework.security.util.FilterChainProxy $VirtualFilterChain.doFilter(FilterChainProxy.java :371)
                  at org.springframework.security.wrapper.SecurityConte xtHolderAwareRequestFilter.doFilterHttp(SecurityCo ntextHolderAwareRequestFilter.java:91)
                  at org.springframework.security.ui.SpringSecurityFilt er.doFilter(SpringSecurityFilter.java:53)
                  at org.springframework.security.util.FilterChainProxy $VirtualFilterChain.doFilter(FilterChainProxy.java :371)
                  at org.springframework.security.ui.basicauth.BasicPro cessingFilter.doFilterHttp(BasicProcessingFilter.j ava:173)
                  at org.springframework.security.ui.SpringSecurityFilt er.doFilter(SpringSecurityFilter.java:53)
                  at org.springframework.security.util.FilterChainProxy $VirtualFilterChain.doFilter(FilterChainProxy.java :371)
                  at org.springframework.security.ui.AbstractProcessing Filter.doFilterHttp(AbstractProcessingFilter.java: 271)
                  at org.springframework.security.ui.SpringSecurityFilt er.doFilter(SpringSecurityFilter.java:53)
                  at org.springframework.security.util.FilterChainProxy $VirtualFilterChain.doFilter(FilterChainProxy.java :371)
                  at org.springframework.security.ui.logout.LogoutFilte r.doFilterHttp(LogoutFilter.java:89)
                  at org.springframework.security.ui.SpringSecurityFilt er.doFilter(SpringSecurityFilter.java:53)
                  at org.springframework.security.util.FilterChainProxy $VirtualFilterChain.doFilter(FilterChainProxy.java :371)
                  at org.springframework.security.context.HttpSessionCo ntextIntegrationFilter.doFilterHttp(HttpSessionCon textIntegrationFilter.java:235)
                  at org.springframework.security.ui.SpringSecurityFilt er.doFilter(SpringSecurityFilter.java:53)
                  at org.springframework.security.util.FilterChainProxy $VirtualFilterChain.doFilter(FilterChainProxy.java :371)
                  at org.springframework.security.util.FilterChainProxy .doFilter(FilterChainProxy.java:174)
                  at org.springframework.web.filter.DelegatingFilterPro xy.invokeDelegate(DelegatingFilterProxy.java:236)
                  at org.springframework.web.filter.DelegatingFilterPro xy.doFilter(DelegatingFilterProxy.java:167)
                  at com.ibm.ws.webcontainer.filter.FilterInstanceWrapp er.doFilter(FilterInstanceWrapper.java:190)
                  at com.ibm.ws.webcontainer.filter.WebAppFilterChain.d oFilter(WebAppFilterChain.java:130)
                  at org.springframework.web.filter.CharacterEncodingFi lter.doFilterInternal(CharacterEncodingFilter.java :96)
                  at org.springframework.web.filter.OncePerRequestFilte r.doFilter(OncePerRequestFilter.java:76)
                  at com.ibm.ws.webcontainer.filter.FilterInstanceWrapp er.doFilter(FilterInstanceWrapper.java:190)
                  at com.ibm.ws.webcontainer.filter.WebAppFilterChain.d oFilter(WebAppFilterChain.java:130)
                  at com.ibm.ws.webcontainer.filter.WebAppFilterChain._ doFilter(WebAppFilterChain.java:87)
                  at com.ibm.ws.webcontainer.filter.WebAppFilterManager .doFilter(WebAppFilterManager.java:761)
                  at com.ibm.ws.webcontainer.filter.WebAppFilterManager .doFilter(WebAppFilterManager.java:673)
                  at com.ibm.ws.webcontainer.servlet.ServletWrapper.han dleRequest(ServletWrapper.java:498)
                  at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.h andleRequest(ServletWrapper.java:464)
                  at com.ibm.ws.webcontainer.servlet.CacheServletWrappe r.handleRequest(CacheServletWrapper.java:90)
                  at com.ibm.ws.webcontainer.WebContainer.handleRequest (WebContainer.java:744)
                  at com.ibm.ws.wswebcontainer.WebContainer.handleReque st(WebContainer.java:1433)
                  at com.ibm.ws.webcontainer.channel.WCChannelLink.read y(WCChannelLink.java:112)
                  at com.ibm.ws.http.channel.inbound.impl.HttpInboundLi nk.handleDiscrimination(HttpInboundLink.java:454)
                  at com.ibm.ws.http.channel.inbound.impl.HttpInboundLi nk.handleNewInformation(HttpInboundLink.java:383)
                  at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCa llback.complete(HttpICLReadCallback.java:102)
                  at com.ibm.ws.tcp.channel.impl.AioReadCompletionListe ner.futureCompleted(AioReadCompletionListener.java :165)
                  at com.ibm.io.async.AbstractAsyncFuture.invokeCallbac k(AbstractAsyncFuture.java:217)
                  at com.ibm.io.async.AsyncChannelFuture.fireCompletion Actions(AsyncChannelFuture.java:161)
                  at com.ibm.io.async.AsyncFuture.completed(AsyncFuture .java:136)
                  at com.ibm.io.async.ResultHandler.complete(ResultHand ler.java:195)
                  at com.ibm.io.async.ResultHandler.runEventProcessingL oop(ResultHandler.java:743)
                  at com.ibm.io.async.ResultHandler$2.run(ResultHandler .java:873)
                  at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.j ava:1469)

                  Regards,
                  Leo682

                  Comment


                  • #24
                    runtime classpath ...

                    hey, not much to go on but does confirm runtime classpath lacking, am still wonderng if application jsf mojarra is correctly intialising, pls attach the startup trace from was console and also the preceding log trace up to where you push the button to generate this error ....

                    Comment


                    • #25
                      startup trace

                      Hi gbayfield,

                      Here is my was SystemOut.log file. My war file name is: JSFWebflow.

                      Regards,
                      Jiang Liu

                      Comment


                      • #26
                        Hi Jiang,

                        I was having the same errors as you in WAS 6.1 with SWF 2.0.6 Booking Faces sample application.

                        This is what I did to fix -

                        1. Put el-impl-1.0.jar and el-api-1.0.jar into lib folder
                        2. Edit application.xml deployment - set classloader mode to PARENT_LAST, WAS classloader policy to APPLICATION
                        3. Add following to web.xml -

                        <context-param>
                        <param-name>com.ibm.ws.jsf.LOAD_FACES_CONFIG_AT_STARTUP</param-name>
                        <param-value>false</param-value>
                        </context-param>

                        <context-param>
                        <param-name>com.sun.faces.expressionFactory</param-name>
                        <param-value>org.jboss.el.ExpressionFactoryImpl</param-value>
                        </context-param>

                        Hope this helps a little.

                        cheers
                        Nick

                        Comment


                        • #27
                          Still has the same error

                          Hi NickR,

                          Thank you for the replay.

                          I took your suggestion and tried, however, I still have the same error.

                          Regards,
                          leo682.

                          Comment


                          • #28
                            java.lang.NoClassDefFoundError: javax.faces.component.ContextCallback

                            Hi, sorry about delay, have been on hols, is this still a problem ? - so your log confirms that Mojarra JSF environment has not been initialised - both the demo and my app log the message "" or similiar at startup but i can not find this is your console log.

                            From classpath u need
                            com.springsource.javax.faces-1.2.0.08.jar

                            then JSF must be initialised from the web.xml settings in order to see

                            [22/04/09 08:44:53:213 BST] 00000022 ContextLoader I org.springframework.web.context.ContextLoader initWebApplicationContext Root WebApplicationContext: initialization completed in 14452 ms
                            [22/04/09 08:44:53:260 BST] 00000022 config I Initializing Mojarra (1.2_08-b06-FCS) for context 'inward_statement.war'

                            If we assume the above jar is on your classpath ? then we must get an indication of the JSF environment initialising so check u do have the demo faces-config.xml file and you if web.xml does have

                            Code:
                            	<!-- Just here so the JSF implementation can initialize, *not* used at runtime -->
                            	<servlet>
                            		<servlet-name>Faces Servlet</servlet-name>
                            		<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
                            		<load-on-startup>1</load-on-startup>
                            	</servlet>
                            
                            	<!-- Just here so the JSF implementation can initialize -->
                            	<servlet-mapping>
                            		<servlet-name>Faces Servlet</servlet-name>
                            		<url-pattern>*.faces</url-pattern>
                            	</servlet-mapping>
                            then please confirm u are deploying your application as PARENT_LAST - that is once deployed u select the Application and CLASSLOADING link and set the bottom radio box for both ?

                            Comment


                            • #29
                              a different exception

                              Hi gbayfield,

                              Thank you for the replay.

                              I followed your suggestion with a brand new workspace and project, however, I still have the same issue. I am not unable to see anything like "Mojarra" in my log. It complains about "Application was not properly initialized at startup, could not find Factory: javax.faces.context.FacesContextFactory" in the SystemOut.log. However, I was able to find the FacesContextFactory in the com.springsource.javax.faces-1.2.0.08.jar and com.ibm.ws.webcontainer_2.0.0.jar files. The Websphere app server is not starting up if I remove the com.ibm.ws.webcontainer_2.0.0.jar out.

                              I attached the SystemOut.log for you.

                              Regards,
                              Leo682

                              Comment


                              • #30
                                leo could u pls confirm your classpath settings on this application as u want PARENT_LAST from above...

                                Comment

                                Working...
                                X