0 Replies Latest reply on May 11, 2010 8:24 AM by robneild

    2.0 test portlet fails to deploy

    robneild

      Hi, I can't get the test 2.0 portlet bridge example going (the 1.0 example is fine)

      I've tried various ways. The following seems to be the simplest way to reproduce the problem.

       

      From a clean setup with the maven repository purged, using java 1.5.0_11-b03 and maven 2.2.0..

      Create the basic portlet example (as in portlet bridge 2.0 docs)

       

      mvn archetype:generate
         -DarchetypeGroupId=org.jboss.portletbridge.archetypes
         -DarchetypeArtifactId=1.2-basic
         -DarchetypeVersion=2.0.0.CR1
         -DgroupId=org.whatever.project
         -DartifactId=myprojectname
         -DarchetypeRepository=http://repository.jboss.org/maven2/

       

      Then following the README.txt (located in portlet example root) and run


      mvn install -Plocal-portal cargo:start

       

      Everything seems to go fine until you try to deploy the example portlet using

       

      mvn cargo:deploy -Plocal-portal

       

       

      The deployment gives the following error

       

      org.codehaus.cargo.container.ContainerException: Deployable [http://localhost:8080/simple-portal/] failed to finish deploying within the time out period [20000]. The Deployable state is thus unknown.

       

      ... and the server generates this error

       

      [INFO] [talledLocalContainer] 11:59:58,308 INFO  [TomcatDeployer] deploy, ctxPath=/JSFRIPortlet, warUrl=.../tmp/deploy/tmp64174JSFRIPortlet-e
      xp.war/
      [INFO] [talledLocalContainer] 11:59:58,574 ERROR [STDERR] 11-May-2010 11:59:58 javax.portlet.faces.GenericFacesPortlet init
      [INFO] [talledLocalContainer] INFO: Init GenericFacesPortlet for portlet riPortlet
      [INFO] [talledLocalContainer] 11:59:58,574 ERROR [STDERR] 11-May-2010 11:59:58 javax.portlet.faces.GenericFacesPortlet calculateBridgeClassName
      [INFO] [talledLocalContainer] INFO: Bridge class name is org.jboss.portletbridge.AjaxPortletBridge
      [INFO] [talledLocalContainer] 11:59:58,605 ERROR [STDERR] 11-May-2010 11:59:58 javax.portlet.faces.GenericFacesPortlet init
      [INFO] [talledLocalContainer] INFO: The bridge does not support doHeaders method

       

      Any thoughts

      Thanks