This information can be very useful for users with similar problems.
Please, feel free to update the myfaces wiki at
http://wiki.apache.org/myfaces :-)

Regards,

Bruno

2005/6/9, CONNER, BRENDAN (SBCSI) <[EMAIL PROTECTED]>:
>  
> Thanks.  I thought I already *was* going slow and steady, since I'm just
> trying to get a single tree component and single jsp to work. ;-)  And my
> helloWorld.jsp did work on my trial 1 and trial 3 (listed in my previous
> post).  Obviously, my helloWorld.jsp didn't work in trial 2 (in which I had
> tried to follow methodically the instructions on the MyFaces Web site),
> because my server wouldn't even start up. 
>   
> I'll continue playing around with it... 
>   
> Thanks again, 
>   
> - Brendan
>  
>  
>  
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, June 09, 2005 3:11 PM
> To: [email protected]
> Subject: RE: Getting MyFaces Components to Work under WSAD or RAD
> 
>  
> Brendan, 
>   
>     We first built our projects over a year ago, so I don't quite remember
> the steps we took. However, 
> my suggestion would be as follows: 
>   
> 1) Create a new (and empty) dynamic web project with the wizard. 
> 2) At the 'Features' dialog, uncheck all the default ones ... you should add
> NO features, especially not the IBM JSF impl. 
> 3) Add only the MyFaces JSF impl jars in the 'lib' directory, etc... like
> the myfaces documentation says. 
> 4) Create a hello world jsp, using jsf's framework. Make sure it works. 
> 5) Methodically add you application components one at a time, testing them
> as you go. I noticed you tried getting your whole 
>     app to work at once with the myfaces impl. You might get lucky,  and it
> could ... but slow and steady will always finish the 
>     race. 
>   
>   
> HTH, 
>   
>   
>   
> Mark 
>   
>   
>   
>  ________________________________
>  
> De : CONNER, BRENDAN (SBCSI) [mailto:[EMAIL PROTECTED] 
> Envoy� : jeudi 9 juin 2005 15:06
> � : MyFaces Discussion
> Objet : RE: Getting MyFaces Components to Work under WSAD or RAD
> 
>  
>  
>  
> Thanks Mark, 
>   
> Can you by any chance give a step by step list of things you did to get this
> to work (e.g., which JAR files you copied over, etc.)? 
>   
> I did a few experiments: 
>   
> 1. Using the existing IBM implementation: 
>   
> I started out using the regular IBM implementation, just copying over the
> source for the Tree2 classes and any classes upon which they depended. 
> Doing this, I actually got the server up and running. 
>   
> The problem was that, when I tried to bring up tree2.jsp, I got a 500:
> Assertion Failed message when the HtmlTreeRenderer was in its
> encodeResursive method: 
>   
>  
>   
> [6/9/05 13:48:27:367 CDT] 51a6029e MyfacesConfig I
> org.apache.myfaces.config.MyfacesConfig  No context init
> parameter 'org.apache.myfaces.PRETTY_HTML' found, using default value true
> [6/9/05 13:48:27:367 CDT] 51a6029e MyfacesConfig I
> org.apache.myfaces.config.MyfacesConfig  No context init
> parameter 'org.apache.myfaces.ALLOW_JAVASCRIPT' found,
> using default value true
> [6/9/05 13:48:27:367 CDT] 51a6029e MyfacesConfig I
> org.apache.myfaces.config.MyfacesConfig  No context init
> parameter 'org.apache.myfaces.DETECT_JAVASCRIPT' found,
> using default value false
> [6/9/05 13:48:27:367 CDT] 51a6029e MyfacesConfig I
> org.apache.myfaces.config.MyfacesConfig  No context init
> parameter 'org.apache.myfaces.AUTO_SCROLL' found, using default value false
> [6/9/05 13:48:27:726 CDT] 51a6029e WebGroup      E SRVE0026E: [Servlet
> Error]-[Assertion Failed]: javax.faces.FacesException: Assertion Failed
>  at com.sun.faces.util.Util.doAssert(Util.java:1300)
>  at
> com.sun.faces.renderkit.html_basic.CommandLinkRenderer.encodeBegin(CommandLinkRenderer.java:186)
>  at
> javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:689)
>  at
> org.apache.myfaces.custom.tree2.HtmlTreeRenderer.encodeRecursive(HtmlTreeRenderer.java:557)
>  at
> org.apache.myfaces.custom.tree2.HtmlTreeRenderer.encodeNavigation(HtmlTreeRenderer.java:545)
>  at
> org.apache.myfaces.custom.tree2.HtmlTreeRenderer.encodeCurrentNode(HtmlTreeRenderer.java:328)
>  at
> org.apache.myfaces.custom.tree2.HtmlTreeRenderer.encodeTree(HtmlTreeRenderer.java:230)
>  at
> org.apache.myfaces.custom.tree2.HtmlTreeRenderer.encodeChildren(HtmlTreeRenderer.java:182)
>  at
> javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:707)
>  at
> javax.faces.webapp.UIComponentTag.encodeChildren(UIComponentTag.java:588)
>  at
> javax.faces.webapp.UIComponentTag.doEndTag(UIComponentTag.java:525)
>  at org.apache.jsp._tree2._jspService(_tree2.java:858)
>  at
> com.ibm.ws.webcontainer.jsp.runtime.HttpJspBase.service(HttpJspBase.java:89)
>  at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>  at
> com.ibm.ws.webcontainer.jsp.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:344)
>  at
> com.ibm.ws.webcontainer.jsp.servlet.JspServlet.serviceJspFile(JspServlet.java:683)
>  at
> com.ibm.ws.webcontainer.jsp.servlet.JspServlet.service(JspServlet.java:781)
>  at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>  at
> com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110)
>  at
> com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174)
>  at
> com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java:313)
>  at
> com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116)
>  at
> com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:283)
>  at
> com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java:42)
>  at
> com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java:40)
>  at
> com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:1019)
>  at
> com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:592)
>  at
> com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:204)
>  at
> com.ibm.faces.context.MultipartExternalContextImpl.dispatch(MultipartExternalContextImpl.java:320)
>  at
> com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:295)
>  at
> com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87)
>  at
> com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
>  at
> com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
>  at
> javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)
>  at
> com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110)
>  at
> com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174)
>  at
> com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java:313)
>  at
> com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116)
>  at
> com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:283)
>  at
> com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java:42)
>  at
> com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java:40)
>  at
> com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:1019)
>  at
> com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:592)
>  at
> com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:204)
>  at
> com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:125)
>  at
> com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:286)
>  at
> com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:71)
>  at
> com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:182)
>  at
> com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java:334)
>  at
> com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java:56)
>  at
> com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:615)
>  at
> com.ibm.ws.http.HttpConnection.run(HttpConnection.java:439)
>  at
> com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:912)
>  
> 2. Using the MyFaces implementation 
>   
> Then I created a brand new workspace and followed the Getting Started
> directions at http://www.myfaces.org, copying the following JAR files to my
> Web project's lib folder: 
>   
> myfaces-jsf-api.jar
> myfaces.jar
> jstl.jar
> jakarta-oro.jar
> commons-codec-1.2.jar
> commons-el.jar
> commons-fileupload-1.0.jar
> commons-logging.jar
> commons-validator.jar 
>   
> And I copied the contents from my downloaded myfaces-1.0.9\conf\web.xml to
> my web.xml file.  However, after doing this, the server wouldn't even start
> up my Web project: 
>   
> [6/9/05 13:32:56:186 CDT] 312c4008 ApplicationMg A WSVR0200I: Starting
> application: Test4
> [6/9/05 13:32:56:264 CDT] 312c4008 WebContainer  A SRVE0169I: Loading Web
> Module: Test4Web.
> [6/9/05 13:32:56:717 CDT] 312c4008 WebApp        E SRVE0015E: Failure to
> initialize Web application Test4Web
> [6/9/05 13:32:56:748 CDT] 312c4008 WebGroup      E SRVE0054E: An error
> occurred while loading Web application
> [6/9/05 13:32:56:764 CDT] 312c4008 DeployedAppli W WSVR0206E: Module,
> Test4Web.war, of application, Test4.ear/deployments/Test4, failed to start
> [6/9/05 13:32:56:764 CDT] 312c4008 ApplicationMg W WSVR0101W: An error
> occurred starting, Test4
> [6/9/05 13:32:56:764 CDT] 312c4008 ApplicationMg A WSVR0217I: Stopping
> application: Test4
> [6/9/05 13:32:56:826 CDT] 312c4008 ApplicationMg A WSVR0220I: Application
> stopped: Test4
> [6/9/05 13:32:56:842 CDT] 312c4008 HttpTransport A SRVE0171I: Transport http
> is listening on port 8,080.
> [6/9/05 13:32:58:873 CDT] 312c4008 HttpTransport A SRVE0171I: Transport
> https is listening on port 9,443.
> [6/9/05 13:32:58:889 CDT] 312c4008 RMIConnectorC A ADMC0026I: RMI Connector
> available at port 2809
> [6/9/05 13:32:58:920 CDT] 312c4008 WsServer      A WSVR0001I: Server server1
> open for e-business
>  
>   
> 3. Importing the entire WAR file 
>   
> I also tried importing the entire WAR file provided by one of the MyFaces
> JAR files.  At least with that, I was able to bring up the tree2.jsp page,
> but when I clicked on the plus sign to expand the server side folder, my
> browser registered a JavaScript error indicating that a referenced object
> was undefined. 
>   
> - Brendan

Reply via email to