Servlet « IceFaces « JSF Q&A





1. Is there a way to upload a file using a Servlet that allows skipping the save to temporary location?    stackoverflow.com

Posting this one for a friend. They have an Icefaces app that uses Icefaces's inputfile functionality but it attempts to upload the file to a temporary directory before it allows access ...

2. Server hangs due to wait in blocking servlet.    icefaces.org

Our application server currently falls over when the thread limit is reached because a number of threads seem to be hung. The stacktrace for all these threads is as follows: State : Waiting on condition Java Stack at java.lang.Object.wait(Native Method) at java.lang.Object.wait(Object.java(Compiled Code)) at edu.emory.mathcs.backport.java.util.concurrent.Semaphore$NonfairSync.acquire(Semaphore.java(Compiled Code)) at edu.emory.mathcs.backport.java.util.concurrent.Semaphore.acquire(Semaphore.java(Compiled Code)) at com.icesoft.faces.webapp.http.servlet.ThreadBlockingAdaptingServlet$ThreadBlockingRequestResponse.blockUntilRespond(ThreadBlockingAdaptingServlet.java(Compiled Code)) at com.icesoft.faces.webapp.http.servlet.ThreadBlockingAdaptingServlet.service(ThreadBlockingAdaptingServlet.java(Compiled Code)) at .... I've seen a few ...

3. Persistent Faces Servlet error in RAD/WAS 6.x    icefaces.org

hgrongst Joined: 14/04/2006 00:00:00 Messages: 3 Offline I added IceFaces support to an existing Web project in IBM RAD. Then I created a simple Java Server Page that just displays "hello", it contains no Ice artifacts. On the server console i keep getting the error message: [4/15/06 20:01:01:172 MDT] 0000004c ServletWrappe E SRVE0068E: Could not invoke the service() method on servlet ...

5. Error in Blocking Servlet when a button in a page is clicked multiple times    icefaces.org

Hi, I have a very simple JSF app with 2 page, a initial page with a commandButton and the final page that just displays values. When the button is clicked it navigates to the final page. The very first time it works fine, but if I repeat the process it opens the initial page with the button and when I click ...

6. Include Servlet content in a JSPX    icefaces.org

7. Servlet.service() for servlet Persistent Faces Servlet threw exception?    icefaces.org

How do you rectify such a problem? 05-Jan-2009 10:05:50 org.apache.catalina.startup.Catalina start INFO: Server startup in 3189 ms 05-Jan-2009 10:05:52 com.icesoft.faces.webapp.http.core.AsyncServerDetector INFO: Asynchronous HTTP Service available: false 05-Jan-2009 10:05:52 com.icesoft.faces.webapp.http.core.AsyncServerDetector INFO: JMS API available: false 05-Jan-2009 10:05:52 com.icesoft.faces.webapp.http.core.AsyncServerDetector INFO: Adapting to Send Updated Views environment. 05-Jan-2009 10:05:52 org.apache.catalina.core.StandardWrapperValve invoke SEVERE: Servlet.service() for servlet Persistent Faces Servlet threw exception java.lang.NullPointerException ...

8. Forwarding from an other servlet    icefaces.org

9. Problem with RenderingException when using custom servlets    icefaces.org

We've got a fairly complicated web app, and the Server push (Glassfish v2.1 using Grizzly/Comet) works just fine. We are using the simplest of schemes, with a single renderable bean (which is session scoped). The problem is that when we use a custom servlet, for example we redirect with a navigation rule in faces-config.xml to "/ExcelExport", which is a custom Servlet ...





10. Calling a servlet from an action    icefaces.org

You won't be able to change the response context mid stream as mentioned in the pdf document. The ICEfaces framework has already set this up for the response and once set you can't change it to something else. I would recommend you stick with the Servlet to handle the download. Remember you can get at your JSF Session beans via the ...

12. how to call a servlet    icefaces.org

15. Facelets tags not rendering when using Faces Servlet and Persistent Faces Servlet    icefaces.org

I am attempting to integrate ICEfaces 1.8.1 into an existing JSF application. I'm using the just-ice.jar for integration as I need to keep the existing pages as they are and only re-write those that are going to leverage ICEfaces components and capabilities. The application is setup such that the Faces Servlet is mapped to *.faces and the Persistent Faces Servlet is ...

16. navigation to servlet in faces-config    icefaces.org





17. Llamar un Servlet    icefaces.org

18. Call servlet    icefaces.org

19. How to include servlet    icefaces.org

21. Navigation from Servlet    icefaces.org

22. Servlet Persistent Faces Servlet threw unload() exception    icefaces.org

When I stop my web app I get this error log: ERROR org.apache.catalina.core.ContainerBase.[null].[localhost].[/wd] Servlet Persistent Faces Servlet threw unload() exception - - - - - - - - - - [Master] org.apache.catalina.core.ApplicationContext.log (ApplicationContext.java:675) javax.servlet.ServletException: Servlet.destroy() for servlet Persistent Faces Servlet threw exception at org.apache.catalina.core.StandardWrapper.unload(StandardWrapper.java:1344) at org.apache.catalina.core.StandardWrapper.stop(StandardWrapper.java:1666) at org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:892) at org.apache.catalina.core.StandardContext.removeChild(StandardContext.java:3095) at org.apache.catalina.startup.ContextConfig.stop(ContextConfig.java:1082) at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:276) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119) at org.apache.catalina.core.StandardContext.stop(StandardContext.java:4347) at org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:892) at ...

23. Tomcat Push Servlet throws: DelegatingFilterProxy cannot be cast to org.apache.catalina.CometFilter    icefaces.org

Hello, I'm trying to use Tomcat Push Servlet together with jboss 4.2.3 and its Http11NioProtocol. My web.xml contains definition of Tomcat Push Servlet: Tomcat Push Servlet com.icesoft.faces.webapp.http.servlet.TomcatPushServlet 1 Tomcat Push Servlet /block/receive-updated-views/* The definition of connector in server.xml: I also changed the mapping of CommonHeadersFilter in jboss: ...

25. How to invoke Servlet from icefaces    icefaces.org

26. How to come back from servlet    icefaces.org

30. Persistent Faces Servlet not strict with TLDs?    icefaces.org

Hi, Perhaps it's my configuration, but when using IceFaces' Persistent Faces Servlet for my pages, the associated TLD's seem to have little/no effect on the operation of a page. I'll illustrate this with an example: I put the following code in my testpage.jspx: Code: If I request the page using the name testpage.jspx I get the ...

33. Faces Servlet in combination with the Persistent Faces Servlet    icefaces.org

I know this has been asked a couple of times before, but those threads still don't seem to give the general answer I am looking for... Suppose I have one web application with several different pages which require different servlets. One page might want to be handled by the normal Faces Servlet, the other might want to be handled by ICE's ...

35. Call to a servlet from icefaces    icefaces.org

36. Page Hangs after direct to custom servlet    icefaces.org

11:09:35 debug [window.async-connection.ui] : [6594696] : send asynchronous POST 11:09:35 debug [window.async-connection.ui] : [618384] : receive [200] OK 11:09:35 info [window] : Redirecting to download-servlet?rvn=1 11:09:35 debug [window.async-connection.ui] : [7908126] : send asynchronous POST 11:09:35 info [window.async-connection.heartbeat] : heartbeat stopped 11:09:35 debug [window.async-connection.blocking] : [7036945] : connection closed 11:09:36 info [window] : page unloaded!

37. customer servlet configuration    icefaces.org

Hi, I am trying to invoke a servlet in backing bean method by following codes: HttpServletResponse response = (HttpServletResponse)ctx.getResponse(); HttpServletRequest request = (HttpServletRequest)ctx.getRequest(); RequestDispatcher view = request.getRequestDispatcher("/path"); view.forward(request,response); And view is always null. Can anybody tell me how to configure web.xml etc, so that I can pass the path to invoke my servlet? I tried in web.xml following: myServlet package.MyServlet ...

38. how to connect icefaces with middle layer servlet    icefaces.org

Hi, could you describe why you want to have access to a bean from within a servlet? In a servlet you usually don't have access to the faces context which prevents you from directly accessing any JSF based components. If you could describe what you want to achieve, maybe there's another solution to your problem. Thanks, Michael

39. Error in send-recieve-updates servlet? (tomcat6, if1.7/1.6)    icefaces.org

Apache Tomcat/6.0.14 - Error report

HTTP Status 500 -


type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.< /u>

exception

java.lang.RuntimeException: Query does not ...

40. question servlet and Icefaces    icefaces.org

42. Blocking servlet cleanup?    icefaces.org

43. Persistent Faces Servlet throws Exception    icefaces.org

11:07:16,663 ERROR [[Persistent Faces Servlet]] Servlet.service() for servlet Persistent Faces Servlet threw exception javax.faces.FacesException: Can't parse stream for /jsf/index.jspx loader constraints violated when linking javax/el/ELContext class at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:549) at com.icesoft.faces.application.D2DViewHandler.renderView(D2DViewHandler.java:153) at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:367) at com.icesoft.faces.webapp.http.core.PageServer$1.respond(PageServer.java:26) at com.icesoft.faces.webapp.http.servlet.ServletRequestResponse.respondWith(ServletRequestResponse.java:147) at com.icesoft.faces.webapp.http.servlet.ThreadBlockingAdaptingServlet$ThreadBlockingRequestResponse.respondWith(ThreadBlockingAdaptingServlet.java:36) at com.icesoft.faces.webapp.http.core.PageServer.service(PageServer.java:31) at com.icesoft.faces.webapp.http.core.SingleViewServer.service(SingleViewServer.java:46) at com.icesoft.faces.webapp.http.common.standard.PathDispatcherServer$Matcher.serviceOnMatch(PathDispatcherServer.java:50) at com.icesoft.faces.webapp.http.common.standard.PathDispatcherServer.service(PathDispatcherServer.java:19) at com.icesoft.faces.webapp.http.servlet.ThreadBlockingAdaptingServlet.service(ThreadBlockingAdaptingServlet.java:19) at com.icesoft.faces.webapp.http.servlet.EnvironmentAdaptingServlet.service(EnvironmentAdaptingServlet.java:29) at com.icesoft.faces.webapp.http.servlet.MainSessionBoundServlet.service(MainSessionBoundServlet.java:110) at com.icesoft.faces.webapp.http.servlet.SessionDispatcher.service(SessionDispatcher.java:35) at com.icesoft.faces.webapp.http.servlet.PathDispatcher$Matcher.serviceOnMatch(PathDispatcher.java:52) at com.icesoft.faces.webapp.http.servlet.PathDispatcher.service(PathDispatcher.java:29) at com.icesoft.faces.webapp.http.servlet.MainServlet.service(MainServlet.java:97) at ...

46. Servlet.service() for servlet Persistent Faces    icefaces.org

org.jboss.seam.servlet.SeamListener com.icesoft.faces.util.event.servlet.ContextEventRepeater Seam Filter org.jboss.seam.servlet.SeamFilter Seam Filter /* javax.faces.STATE_SAVING_METHOD server org.jboss.seam.core.init.debug true facelets.DEVELOPMENT true ...

47. Blocking Servlet threw exception    icefaces.org

48. Nullpointer in Blocking Servlet    icefaces.org

Hi, does anybody know why the Blocking Servlet is throwing a Nullpointer? I've got an application running on a Tomcat 6.0.16 and just migrated to IceFaces 1.7.1. When I was using 1.7.0 everything went ok. At the moment I get the following Error Message: 16.07.2008 15:48:49 org.apache.catalina.core.StandardWrapperValve invoke SCHWERWIEGEND: Servlet.service() for servlet Blocking Servlet threw exception java.lang.NullPointerException at com.icesoft.faces.webapp.xmlhttp.BlockingServlet.service(BlockingServlet.java:46) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) ...

49. Extending Servlet . . . ExceptionHandler    icefaces.org

Hello, Under the java framework, e.g. sans IceFaces, I had implemented Servlet in order to catch unanticipated exceptions. By implementing servlet, the FacesServlet was delegated, and with some configuration in web.xml, my exception handling was working like a charm. So how do I do that in IceFaces? Here's an example of what I was doing? ** VDCFacesServlet.java . . . /** ...

50. Servlets on ICEFaces and Popups    liferay.com

Hi I have a icefaces page which include a form fields and a buttons , one of the buttons is to call a Servlet to generate a report on a new window(Popup)