I am new to JSF and portals. Please help me in Trouble shooting.
I have JSP page which uses <t:inputCalendar> and <t:panelTabbedPane> which i have deploed with Tomahawk 1.1.2.jar with no problems. But when i added Tomahawk 1.1.3.jar to my WEB_INF/lib directory and tried to run this application then i can render the application but a error message comes at the bottom of the page as "The portlet is unavailable".
The server console shows the following exception: ======================================= [10/30/06 9:06:20:582 IST] 761db362 WebGroup E SRVE0026E: [Servlet Error]-[Filter [extensionsFilter]: filter is unavailable.]: java.lang.NoClassDefFoundError: org/apache/commons/fileupload/FileUpload at org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(ExtensionsFilter.java:115) at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:132) at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:71) at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:1162) at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:676) at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:203) at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:125) at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:300) at com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:71) at com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:246) 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:652) at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:458) at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:936)
What is the meaing of this exception.
Break the ice - SCJP 1.4,<br />Where There's a will- SCWCD 1.4.<br />Back in action - Websphere Certified Portal 6 Application Developer
download commons-fileupload-1.1.1.jar from the apache commons homepage and place it in your web-inf/lib folder.
MCSD, SCJP, SCWCD, SCBCD, SCJD (in progress - URLybird 1.2.1)
Pallavi Roy
Ranch Hand
Joined: Jun 01, 2006
Posts: 37
posted
0
Thank you for your help. I am using JSF version 1.1 and Tomahawk version 1.1.3. But after i do the above thing i am getting a new exception and my application is not getting displayed at all and the same message as before "This portlet is unavailable"
I have included the exception thrown is(Its pretty big so i have included the major exception occuring): ========================================================================== Nested Exception is java.lang.NoClassDefFoundError: javax/servlet/jsp/el/ELException at org.apache.myfaces.shared_tomahawk.config.MyfacesConfig.<clinit>(MyfacesConfig.java:80) at org.apache.myfaces.renderkit.html.util.AddResourceFactory.getInstance(AddResourceFactory.java:283) at org.apache.myfaces.custom.inputTextHelp.HtmlTextHelpRenderer.addJavaScriptResources(HtmlTextHelpRenderer.java:174) at org.apache.myfaces.custom.inputTextHelp.HtmlTextHelpRenderer.renderNormal(HtmlTextHelpRenderer.java:47) at org.apache.myfaces.renderkit.html.ext.HtmlTextRenderer.encodeEnd(HtmlTextRenderer.java:80) at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:720) at org.apache.myfaces.shared_tomahawk.renderkit.RendererUtils.renderChild(RendererUtils.java:442) at org.apache.myfaces.custom.calendar.HtmlCalendarRenderer.encodeEnd(HtmlCalendarRenderer.java:160) at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:720)
same deal again. you are missing a required jar file.
i cant remember the name of the jar file, off the top of my head. It should be either servlet.jar or jsp-impl.jar
just do a search for *.jar in your tomcat/lib folder that contains the text "ElException" (you can use standard windows search for this). Open the jar file -> make sure that the it has the javax.servlet.jsp.el.ELException class in it. If it does, then copy the jar file to your web-inf/lib folder and reload your webapp.