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?

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.

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( Code)) at$NonfairSync.acquire( Code)) at Code)) at com.icesoft.faces.webapp.http.servlet.ThreadBlockingAdaptingServlet$ThreadBlockingRequestResponse.blockUntilRespond( Code)) at com.icesoft.faces.webapp.http.servlet.ThreadBlockingAdaptingServlet.service( Code)) at .... I've seen a few ...

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

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

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

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

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

9. Problem with RenderingException when using custom servlets

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

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

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

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

17. Llamar un Servlet

18. Call servlet

19. How to include servlet

21. Navigation from Servlet

22. Servlet Persistent Faces Servlet threw unload() exception

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 ( javax.servlet.ServletException: Servlet.destroy() for servlet Persistent Faces Servlet threw exception at org.apache.catalina.core.StandardWrapper.unload( at org.apache.catalina.core.StandardWrapper.stop( at org.apache.catalina.core.ContainerBase.removeChild( at org.apache.catalina.core.StandardContext.removeChild( at org.apache.catalina.startup.ContextConfig.stop( at org.apache.catalina.startup.ContextConfig.lifecycleEvent( at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent( at org.apache.catalina.core.StandardContext.stop( at org.apache.catalina.core.ContainerBase.removeChild( at ...

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

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

26. How to come back from servlet

30. Persistent Faces Servlet not strict with TLDs?

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

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

36. Page Hangs after direct to custom servlet

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

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

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)

Apache Tomcat/6.0.14 - Error report

HTTP Status 500 -

type Exception report


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


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

40. question servlet and Icefaces

42. Blocking servlet cleanup?

43. Persistent Faces Servlet throws Exception

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( at com.icesoft.faces.application.D2DViewHandler.renderView( at org.apache.myfaces.lifecycle.LifecycleImpl.render( at com.icesoft.faces.webapp.http.core.PageServer$1.respond( at com.icesoft.faces.webapp.http.servlet.ServletRequestResponse.respondWith( at com.icesoft.faces.webapp.http.servlet.ThreadBlockingAdaptingServlet$ThreadBlockingRequestResponse.respondWith( at com.icesoft.faces.webapp.http.core.PageServer.service( at com.icesoft.faces.webapp.http.core.SingleViewServer.service( at com.icesoft.faces.webapp.http.common.standard.PathDispatcherServer$Matcher.serviceOnMatch( at com.icesoft.faces.webapp.http.common.standard.PathDispatcherServer.service( at com.icesoft.faces.webapp.http.servlet.ThreadBlockingAdaptingServlet.service( at com.icesoft.faces.webapp.http.servlet.EnvironmentAdaptingServlet.service( at com.icesoft.faces.webapp.http.servlet.MainSessionBoundServlet.service( at com.icesoft.faces.webapp.http.servlet.SessionDispatcher.service( at com.icesoft.faces.webapp.http.servlet.PathDispatcher$Matcher.serviceOnMatch( at com.icesoft.faces.webapp.http.servlet.PathDispatcher.service( at com.icesoft.faces.webapp.http.servlet.MainServlet.service( at ...

46. Servlet.service() for servlet Persistent Faces

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

48. Nullpointer in Blocking Servlet

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( at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter( ...

49. Extending Servlet . . . ExceptionHandler

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? ** . . . /** ...

50. Servlets on ICEFaces and Popups

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)