Uploaded image for project: 'Jetspeed 2 (Retired)'
  1. Jetspeed 2 (Retired)
  2. JS2-199

Deployment Race Condition with Tomcat

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 2.0-dev/cvs
    • None
    • Deployment
    • None
    • tomcat 5.0.28

    Description

      The deployment of portlets and the deployment of Tomcat conflict.

      Step 1: Tomcat starts and looks for webapps
      Step 2: Tomcat finds jetspeed.xml and initializes the application
      Step 3: Jetspeed starts the DeploymentManager
      Step 4: The DeploymentManager finds the demo portal application and begins to deploy it using manager.xml
      Step 5: Tomcat continues looking for webapps and finds webapps/demo which has been created by Jetspeed
      Step 6: Tomcat initializes the demo webapp
      Step 7: The DeploymentManager continues and tries to register /demo through the tomcat-manager
      Step 8: Error: /demo has already been deployed.

      This happens obviously also when autodeploy is set to false.
      Tomcat is just not finished its standard deployment, when it is interrupted by the JS-DeploymentManager.

      It's critical, because when this happens to the security webapp you cannot login.

      I've added the output I get when starting from scratch.

      [...]
      21.01.2005 05:38:17 org.apache.catalina.core.StandardHostDeployer install
      INFO: Processing Context configuration file URL file:C:\usr\jakarta-tomcat-5.0.28\conf\Catalina\localhost\jetspeed.xml
      INFO: Deployment server port: 8080
      INFO: Deployment server: localhost
      INFO: Starting auto deployment service: org.apache.jetspeed.deployment.impl.StandardDeploymentManager
      INFO: Deployment scanning delay: 10000
      INFO: Deployment staging directory: C:\usr\jakarta-tomcat-5.0.28\webapps\jetspeed/WEB-INF/deploy
      INFO: Deployment scanner successfuly started!
      INFO: JetspeedServlet successfuly created the portal Engine. org.apache.jetspeed.engine.SpringEngine@1bef987
      INFO: JetspeedServlet attempting to initialize the portletcontainer...
      INFO: JetspeedServlet has successfuly initialized the portlet container...
      INFO: Jetspeed Initialization complete, Ready to service requests.
      JetspeedContainerServlet: starting initialization of context Jetspeed-2 Enterprise Portal
      JetspeedContainerServlet: Initialization complete for context Jetspeed-2 Enterprise Portal
      INFO: Loading portlet application from web archive C:\usr\jakarta-tomcat-5.0.28\webapps\jetspeed\WEB-INF\deploy\demo.war
      INFO: Preparing to (re) deploy portlet app "demo"
      INFO: Deploying portlet applicaion WAR demo.war
      INFO: Portlet application deployment target directory is C:\usr\jakarta-tomcat-5.0.28\webapps\jetspeed/..//demo
      21.01.2005 05:38:34 org.apache.catalina.core.StandardHostDeployer install
      INFO: Processing Context configuration file URL file:C:\usr\jakarta-tomcat-5.0.28\conf\Catalina\localhost\manager.xml
      21.01.2005 05:38:34 org.apache.catalina.core.StandardHostDeployer install
      INFO: Installing web application at context path /demo from URL file:C:\usr\jakarta-tomcat-5.0.28\webapps\demo
      Writing out infused web.xml for demo
      21.01.2005 05:38:37 org.apache.coyote.http11.Http11Protocol start
      INFO: Starting Coyote HTTP/1.1 on http-8080
      21.01.2005 05:38:38 org.apache.jk.common.ChannelSocket init
      INFO: JK2: ajp13 listening on /0.0.0.0:8009
      21.01.2005 05:38:38 org.apache.jk.server.JkMain start
      INFO: Jk running ID=0 time=16/141 config=C:\usr\jakarta-tomcat-5.0.28\conf\jk2.properties
      21.01.2005 05:38:38 org.apache.catalina.startup.Catalina start
      INFO: Server startup in 21734 ms
      namespace = http://portals.apache.org/jetspeed
      name = service
      object = org.apache.jetspeed.om.impl.JetspeedServiceReferenceImpl@5e9d7a
      service = org.apache.jetspeed.om.impl.JetspeedServiceReferenceImpl@5e9d7a
      INFO: Loading web.xml into memory....
      INFO: Saving the portlet.xml in the registry...
      INFO: Committing registry changes...
      INFO: FileSystem deployment done.
      ERROR: org.apache.jetspeed.deployment.DeploymentException: Error (re)deploying portlet app: org.apache.jetspeed.tools.pamanager.PortletApplicationException: Cat
      alina container action failed, "FEHLER - Anwendung existiert bereits f³r Kontext Pfad /demo
      "
      org.apache.jetspeed.deployment.DeploymentException: Error (re)deploying portlet app: org.apache.jetspeed.tools.pamanager.PortletApplicationException: Catalina c
      ontainer action failed, "FEHLER - Anwendung existiert bereits f³r Kontext Pfad /demo
      "
      at org.apache.jetspeed.deployment.impl.DeployPortletAppEventListener.doDeploy(DeployPortletAppEventListener.java:299)
      at org.apache.jetspeed.deployment.impl.DeployPortletAppEventListener.invokeDeploy(DeployPortletAppEventListener.java:162)
      at org.apache.jetspeed.deployment.impl.StandardDeploymentManager.dispatch(StandardDeploymentManager.java:304)
      at org.apache.jetspeed.deployment.impl.StandardDeploymentManager.fireDeploymentEvent(StandardDeploymentManager.java:195)
      at org.apache.jetspeed.deployment.impl.StandardDeploymentManager$FileSystemScanner.run(StandardDeploymentManager.java:458)
      Caused by: org.apache.jetspeed.tools.pamanager.PortletApplicationException: Catalina container action failed, "FEHLER - Anwendung existiert bereits f³r Kontext
      Pfad /demo
      "
      at org.apache.jetspeed.tools.pamanager.ApplicationServerPAM.checkResponse(ApplicationServerPAM.java:225)
      at org.apache.jetspeed.tools.pamanager.ApplicationServerPAM.deploy(ApplicationServerPAM.java:84)
      at org.apache.jetspeed.deployment.impl.DeployPortletAppEventListener.doDeploy(DeployPortletAppEventListener.java:259)
      ... 4 more
      ERROR: Error deploying C:\usr\jakarta-tomcat-5.0.28\webapps\jetspeed\WEB-INF\deploy\demo.war

      Attachments

        Activity

          People

            ate Ate Douma
            john.donald John Donald
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: