voyent
I can't find async-http-server.war in ICEfaces-1.6.1-AHSa.zip  XML
Forum Index -> Async HTTP Server
Author Message
maxi_ng

Joined: 11/Jan/2008 00:00:00
Messages: 92
Offline


According to this http://www.icefaces.org/docs/v1_6_0/AHS/htmlguide/deployguide/Async_server_config3.html#1045706
I supposed to find .war in /bin.
but I don't see any /bin or .war inside.
Do I have to build one myself?
I don't know how to use ANT.
Can anyone just tell me what command I should use to get the .war?

Thank you
jack.van.ooststroom


Joined: 26/Oct/2004 00:00:00
Messages: 223
Offline


Apparently our documentation and our build got out of sync. Good catch!

However, to get the async-http-server.war please follow this steps:

  • Edit the build.properties file by specifying the path to the ICEfaces 1.6.1 installation directory using the icefaces.dir property. The build.properties file is located in the ICEfaces-1.6.1-AHSa/icefaces-ahs/ directory.
  • If not already done so, please download Ant (version 1.6.5 or later) from this site and follow instructions on the Installing Ant section at http://ant.apache.org/manual/install.html#installing.
  • Build the ICEfaces Asynchronous HTTP Server library and application by invoking "ant clean jar build.war" in the ICEfaces-1.6.1-AHSa/icefaces-ahs/ directory. This will build the icefaces-ahs.jar in the ICEfaces-1.6.1-AHSa/icefaces-ahs/lib/ directory and the async-http-server.war in the ICEfaces-1.6.1-AHSa/icefaces-ahs/dist/ directory.

    My apologies for the inconvenience, but I hope this helps.

    Regards,

  • Jack van Ooststroom
    Senior Developer
    ICEsoft Technologies, Inc.
    [Email]
    maxi_ng

    Joined: 11/Jan/2008 00:00:00
    Messages: 92
    Offline


    build successful. thank you so much.

    I follow this document http://www.icefaces.org/docs/v1_6_0/AHS/htmlguide/deployguide/Async_ServerTOC.html
    setup JMS, and then deploy my AHS.war, modified my portlet.
    after I start up my app. server. I can not visit my webpage anymore.
    which is localhost:8080 for liferay.

    the browser redirect me to http://localhost:8080/user/test/1
    and show me this error
    The page isn't redirecting properly
    Firefox has detected that the server is redirecting the request for this address in a way that will never complete.
    * This problem can sometimes be caused by disabling or refusing to accept
    cookies. 


    the log when I deploy async-http-server.war is attached
    there is an exception
    java.lang.ClassCastException: com.sun.faces.application.ApplicationAssociate cannot be cast to com.sun.faces.application.ApplicationAssociate 

    but AHS should be started
    2008-03-11 03:36:21,245 INFO [com.icesoft.faces.async.server.AsyncHttpServer] done.
    2008-03-11 03:36:21,245 INFO [com.icesoft.faces.async.server.AsyncHttpServer] [4] Start listening...
    2008-03-11 03:36:21,245 INFO [com.icesoft.faces.async.server.AsyncHttpServer] done.
    2008-03-11 03:36:21,245 INFO [com.icesoft.faces.async.server.AsyncHttpServer] Asynchronous HTTP Server 1.6 started! 


    my app. server console said it is started too.
    I am using liferay-portal-jboss-tomcat-4.2-4.4.1.zip

    please help



     Filename AHS_deploy_exp.txt [Disk] Download
     Description
     Filesize 41 Kbytes
     Downloaded:  1085 time(s)

    jack.van.ooststroom


    Joined: 26/Oct/2004 00:00:00
    Messages: 223
    Offline


    Hmmm... You're using Liferay Portal on JBoss.

    I would like to recommend upgrading to ICEfaces 1.7 (currently at Beta 1) if possible. The 1.7 branch supplies better Portlet support and AHS is part of the core product. Additionally AHS now can run in servlet mode as well which requires less configuration, especially in a Portal environment.

    That being said, if you're not able to upgrade I'll do my best helping you get your current configuration up and running.

    ICEfaces-AHS 1.6 only supports running in server mode, which means it will listen for incoming blocking requests on its own port (by default 51315). You'll have to front-end your application server with a web server, for instance Apache HTTP Server, to split up the communication: blocking requests need to go to AHS' port and non-blocking requests need to go to the application server's port.

    Please let me know if you are able to upgrade or not so that I can help you further.

    Regards,

    Jack van Ooststroom
    Senior Developer
    ICEsoft Technologies, Inc.
    [Email]
    maxi_ng

    Joined: 11/Jan/2008 00:00:00
    Messages: 92
    Offline


    Hi jack,

    thank you for your reply. I got what you mean now.
    Actually I have tried 1.7beta, It support AHS and better UI style, but it has a session timeout problem that maybe caused by Javascript conflict with liferay.

    do you have other suggestions?
    jack.van.ooststroom


    Joined: 26/Oct/2004 00:00:00
    Messages: 223
    Offline


    The session timeout problem you're referring to might be related to ICE-2519. The applied fix is targeted for release with ICEfaces 1.7 as well. Please have a look.

    Regards,

    Jack van Ooststroom
    Senior Developer
    ICEsoft Technologies, Inc.
    [Email]
     
    Forum Index -> Async HTTP Server
    Go to:   
    Powered by JForum 2.1.7ice © JForum Team